r600g: don't set dirty_db_mask for a flushed depth texture
authorMarek Olšák <maraeo@gmail.com>
Sun, 8 Jul 2012 01:09:06 +0000 (03:09 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 12 Jul 2012 00:08:31 +0000 (02:08 +0200)
A flush depth texture is never set as a depth buffer and never flushed.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_texture.c

index c34df2daa71301e508f3cfb66155c51f2020899f..a6a83cab41a2a1ef8010ab7d6e9bf49acd4e26d5 100644 (file)
@@ -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) {