A flush depth texture is never set as a depth buffer and never flushed.
---
 src/gallium/drivers/r600/r600_texture.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c 
b/src/gallium/drivers/r600/r600_texture.c
index c34df2d..a6a83ca 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -753,8 +753,6 @@ void r600_init_flushed_depth_texture(struct pipe_context 
*ctx,
 
        if (staging)
                resource.flags |= R600_RESOURCE_FLAG_TRANSFER;
-       else
-               rtex->dirty_db_mask = (1 << (resource.last_level+1)) - 1;
 
        *flushed_depth_texture = (struct r600_resource_texture 
*)ctx->screen->resource_create(ctx->screen, &resource);
        if (*flushed_depth_texture == NULL) {
-- 
1.7.9.5

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to