radeonsi: rename r600_texture::dirty_db_mask to dirty_level_mask
authorMarek Olšák <marek.olsak@amd.com>
Mon, 5 Aug 2013 12:40:43 +0000 (14:40 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 15 Aug 2013 00:03:03 +0000 (02:03 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/r600_blit.c
src/gallium/drivers/radeonsi/r600_resource.h
src/gallium/drivers/radeonsi/r600_texture.c
src/gallium/drivers/radeonsi/si_state_draw.c

index 421aab370e5739017c7452a1290fe881f0e43b65..bab108e7c91dd8bda9f56645309fcd952c0588ca 100644 (file)
@@ -114,7 +114,7 @@ void si_blit_uncompress_depth(struct pipe_context *ctx,
        struct r600_texture *flushed_depth_texture = staging ?
                        staging : texture->flushed_depth_texture;
 
-       if (!staging && !texture->dirty_db_mask)
+       if (!staging && !texture->dirty_level_mask)
                return;
 
        desc = util_format_description(flushed_depth_texture->resource.b.b.format);
@@ -133,7 +133,7 @@ void si_blit_uncompress_depth(struct pipe_context *ctx,
        }
 
        for (level = first_level; level <= last_level; level++) {
-               if (!staging && !(texture->dirty_db_mask & (1 << level)))
+               if (!staging && !(texture->dirty_level_mask & (1 << level)))
                        continue;
 
                /* The smaller the mipmap level, the less layers there are
@@ -166,7 +166,7 @@ void si_blit_uncompress_depth(struct pipe_context *ctx,
                /* The texture will always be dirty if some layers aren't flushed.
                 * I don't think this case can occur though. */
                if (!staging && first_layer == 0 && last_layer == max_layer) {
-                       texture->dirty_db_mask &= ~(1 << level);
+                       texture->dirty_level_mask &= ~(1 << level);
                }
        }
 }
@@ -182,7 +182,7 @@ static void si_blit_decompress_depth_in_place(struct r600_context *rctx,
        surf_tmpl.format = texture->resource.b.b.format;
 
        for (level = first_level; level <= last_level; level++) {
-               if (!(texture->dirty_db_mask & (1 << level)))
+               if (!(texture->dirty_level_mask & (1 << level)))
                        continue;
 
                surf_tmpl.u.tex.level = level;
@@ -210,7 +210,7 @@ static void si_blit_decompress_depth_in_place(struct r600_context *rctx,
                /* The texture will always be dirty if some layers aren't flushed.
                 * I don't think this case occurs often though. */
                if (first_layer == 0 && last_layer == max_layer) {
-                       texture->dirty_db_mask &= ~(1 << level);
+                       texture->dirty_level_mask &= ~(1 << level);
                }
        }
 }
index 19cc1d99459cf29ef39caf27b6df17838c523e67..24db2a90daecf103490d44bc26f4e73b441030f5 100644 (file)
@@ -49,7 +49,7 @@ struct r600_texture {
 
        unsigned                        pitch_override;
        unsigned                        is_depth;
-       unsigned                        dirty_db_mask; /* each bit says if that miplevel is dirty */
+       unsigned                        dirty_level_mask; /* each bit says if that miplevel is dirty */
        struct r600_texture             *flushed_depth_texture;
        boolean                         is_flushing_texture;
        struct radeon_surface           surface;
index 73e390ca6ec406e55d8d7ecededfc9bb0d8e9698..40c0235b5c492b0d4947f9389aae3226e0ffd461 100644 (file)
@@ -659,7 +659,7 @@ bool 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;
+               rtex->dirty_level_mask = (1 << (resource.last_level+1)) - 1;
 
        *flushed_depth_texture = (struct r600_texture *)ctx->screen->resource_create(ctx->screen, &resource);
        if (*flushed_depth_texture == NULL) {
index 45cfcc491a410bca7dc546825f1fa9876ec7770f..3363d46b68f9f874f92bb7638064e0d366a86b61 100644 (file)
@@ -726,7 +726,7 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
                struct pipe_surface *surf = rctx->framebuffer.zsbuf;
                struct r600_texture *rtex = (struct r600_texture *)surf->texture;
 
-               rtex->dirty_db_mask |= 1 << surf->u.tex.level;
+               rtex->dirty_level_mask |= 1 << surf->u.tex.level;
        }
 
        pipe_resource_reference(&ib.buffer, NULL);