Mesa (master): r600g: avoid trying to flush the flushing texture.

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


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

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

r600g: avoid trying to flush the flushing texture.

Since these textures still have the depth bit set.

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

---

 src/gallium/drivers/r600/r600_blit.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index de54da8..af471d0 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -134,6 +134,9 @@ void r600_flush_depth_textures(struct r600_pipe_context *rctx)
 		if (!tex->depth)
 			continue;
 
+		if (tex->is_flushing_texture)
+			continue;
+
 		r600_blit_uncompress_depth(&rctx->context, tex);
 	}
 
@@ -145,6 +148,9 @@ void r600_flush_depth_textures(struct r600_pipe_context *rctx)
 		if (!tex->depth)
 			continue;
 
+		if (tex->is_flushing_texture)
+			continue;
+
 		r600_blit_uncompress_depth(&rctx->context, tex);
 	}
 }




More information about the mesa-commit mailing list