diff options
author | Dave Airlie <[email protected]> | 2011-02-04 09:08:32 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-02-04 09:09:45 +1000 |
commit | 2271c793e8650e0e55c054301ab85b5b92b9bf11 (patch) | |
tree | d3c3001241c4fdacc1b34ee7b523d6b031c7abf8 /src/gallium/drivers/r600/r600_texture.c | |
parent | cd6864c07976fad5f9008206d558dc6c8c599c11 (diff) |
r600g: flushing texture needs all levels.
For mipmap generation we need all levels in the flushing texture.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index bc18eef6cfe..14a289444df 100644 --- 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; |