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:
parent
cd6864c079
commit
2271c793e8
|
@ -501,7 +501,7 @@ int r600_texture_depth_flush(struct pipe_context *ctx,
|
||||||
resource.width0 = texture->width0;
|
resource.width0 = texture->width0;
|
||||||
resource.height0 = texture->height0;
|
resource.height0 = texture->height0;
|
||||||
resource.depth0 = 1;
|
resource.depth0 = 1;
|
||||||
resource.last_level = 0;
|
resource.last_level = texture->last_level;
|
||||||
resource.nr_samples = 0;
|
resource.nr_samples = 0;
|
||||||
resource.usage = PIPE_USAGE_DYNAMIC;
|
resource.usage = PIPE_USAGE_DYNAMIC;
|
||||||
resource.bind = 0;
|
resource.bind = 0;
|
||||||
|
|
Loading…
Reference in New Issue