Mesa (master): r600g: flushing texture needs all levels.

Dave Airlie airlied at kemper.freedesktop.org
Thu Feb 3 23:05:05 UTC 2011


Module: Mesa
Branch: master
Commit: 2271c793e8650e0e55c054301ab85b5b92b9bf11
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2271c793e8650e0e55c054301ab85b5b92b9bf11

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Feb  4 09:08:32 2011 +1000

r600g: flushing texture needs all levels.

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

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 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 bc18eef..14a2894 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;




More information about the mesa-commit mailing list