summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-02-04 09:36:02 +1000
committerDave Airlie <[email protected]>2011-02-04 09:36:02 +1000
commit812c314e5161d2b5f91c86ba45b79d4b34046bee (patch)
tree03cb6f608e92c9b2b05ea38cea63471f2f5a6e5b /src/gallium
parent8c643446f982892aeec4298977fbbe1ab92206fb (diff)
r600g: avoid trying to flush the flushing texture.
Since these textures still have the depth bit set. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_blit.c6
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 de54da8714f..af471d0d917 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);
}
}