r600g: flushing texture needs all levels.

For mipmap generation we need all levels in the flushing texture.

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2011-02-04 09:08:32 +10:00
parent cd6864c079
commit 2271c793e8
1 changed files with 1 additions and 1 deletions

View File

@ -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;