projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd6864c
)
r600g: flushing texture needs all levels.
author
Dave Airlie
<airlied@redhat.com>
Thu, 3 Feb 2011 23:08:32 +0000
(09:08 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 3 Feb 2011 23:09:45 +0000
(09:09 +1000)
For mipmap generation we need all levels in the flushing texture.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_texture.c
b/src/gallium/drivers/r600/r600_texture.c
index
bc18eef
..
14a2894
100644
(file)
--- a/
src/gallium/drivers/r600/r600_texture.c
+++ b/
src/gallium/drivers/r600/r600_texture.c
@@
-501,7
+501,7
@@
int r600_texture_depth_flush(struct pipe_context *ctx,
resource.width0 = texture->width0;
resource.height0 = texture->height0;
resource.depth0 = 1;
- resource.last_level =
0
;
+ resource.last_level =
texture->last_level
;
resource.nr_samples = 0;
resource.usage = PIPE_USAGE_DYNAMIC;
resource.bind = 0;