diff options
| author | Marek Olšák <maraeo@gmail.com> | 2010-08-15 02:18:15 +0200 | 
|---|---|---|
| committer | Marek Olšák <maraeo@gmail.com> | 2010-08-15 08:07:11 +0200 | 
| commit | 59c2230879cb5149ce99ac8565ce6af9c5b02e04 (patch) | |
| tree | 4bae6710615502f2b809b68587f0338bfd2c132c | |
| parent | 516152112ea2a8524865d230f657977583246092 (diff) | |
r300g: rename dirty_zmask -> zmask_in_use
| -rw-r--r-- | src/gallium/drivers/r300/r300_blit.c | 10 | ||||
| -rw-r--r-- | src/gallium/drivers/r300/r300_context.h | 2 | ||||
| -rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 4 | ||||
| -rw-r--r-- | src/gallium/drivers/r300/r300_hyperz.c | 8 | ||||
| -rw-r--r-- | src/gallium/drivers/r300/r300_state_derived.c | 2 | 
5 files changed, 13 insertions, 13 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index 00756c771c..29393109fa 100644 --- a/src/gallium/drivers/r300/r300_blit.c +++ b/src/gallium/drivers/r300/r300_blit.c @@ -251,10 +251,10 @@ static void r300_clear(struct pipe_context* pipe,      /* Enable fastfill.       * -     * If we cleared the zmask, it's dirty now. The Hyper-Z state update -     * looks for a dirty zmask and enables fastfill accordingly. */ +     * If we cleared the zmask, it's in use now. The Hyper-Z state update +     * looks if zmask is in use and enables fastfill accordingly. */      if (fb->zsbuf && -        r300_texture(fb->zsbuf->texture)->dirty_zmask[fb->zsbuf->level]) { +        r300_texture(fb->zsbuf->texture)->zmask_in_use[fb->zsbuf->level]) {          r300->hyperz_state.dirty = TRUE;      } @@ -307,7 +307,7 @@ void r300_flush_depth_stencil(struct pipe_context *pipe,      if (!tex->zmask_mem[subdst.level])          return; -    if (!tex->dirty_zmask[subdst.level]) +    if (!tex->zmask_in_use[subdst.level])          return;      dstsurf = pipe->screen->get_tex_surface(pipe->screen, dst, @@ -319,7 +319,7 @@ void r300_flush_depth_stencil(struct pipe_context *pipe,      r300_blitter_end(r300);      r300->z_decomp_rd = FALSE; -    tex->dirty_zmask[subdst.level] = FALSE; +    tex->zmask_in_use[subdst.level] = FALSE;  }  /* Copy a block of pixels from one surface to another using HW. */ diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index 98e6d358e9..6c4c396982 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -397,7 +397,7 @@ struct r300_texture {      /* hyper-z memory allocs */      struct mem_block *hiz_mem[R300_MAX_TEXTURE_LEVELS];      struct mem_block *zmask_mem[R300_MAX_TEXTURE_LEVELS]; -    boolean dirty_zmask[R300_MAX_TEXTURE_LEVELS]; +    boolean zmask_in_use[R300_MAX_TEXTURE_LEVELS];      /* This is the level tiling flags were last time set for.       * It's used to prevent redundant tiling-flags changes from happening.*/ diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index ccf360b6ea..fe334c924e 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -1086,8 +1086,8 @@ void r300_emit_zmask_clear(struct r300_context *r300, unsigned size, void *state          r300_emit_zmask_line_clear(r300, offset, stride, 0x0);//0xffffffff);      } -    /* Mark the current zbuffer's zmask as dirty. */ -    tex->dirty_zmask[fb->zsbuf->level] = TRUE; +    /* Mark the current zbuffer's zmask as in use. */ +    tex->zmask_in_use[fb->zsbuf->level] = TRUE;  }  void r300_emit_ztop_state(struct r300_context* r300, diff --git a/src/gallium/drivers/r300/r300_hyperz.c b/src/gallium/drivers/r300/r300_hyperz.c index 1f6244c49e..9cce195eb4 100644 --- a/src/gallium/drivers/r300/r300_hyperz.c +++ b/src/gallium/drivers/r300/r300_hyperz.c @@ -131,7 +131,7 @@ static void r300_update_hyperz(struct r300_context* r300)          (struct r300_hyperz_state*)r300->hyperz_state.state;      struct pipe_framebuffer_state *fb =          (struct pipe_framebuffer_state*)r300->fb_state.state; -    boolean dirty_zmask = FALSE; +    boolean zmask_in_use = FALSE;      z->gb_z_peq_config = 0;      z->zb_bw_cntl = 0; @@ -149,15 +149,15 @@ static void r300_update_hyperz(struct r300_context* r300)      if (!r300->rws->get_value(r300->rws, R300_CAN_HYPERZ))          return; -    dirty_zmask = r300_texture(fb->zsbuf->texture)->dirty_zmask[fb->zsbuf->level]; +    zmask_in_use = r300_texture(fb->zsbuf->texture)->zmask_in_use[fb->zsbuf->level];      /* Z fastfill. */ -    if (dirty_zmask) { +    if (zmask_in_use) {          z->zb_bw_cntl |= R300_FAST_FILL_ENABLE; /*  | R300_FORCE_COMPRESSED_STENCIL_VALUE_ENABLE;*/      }      /* Zbuffer compression. */ -    if (dirty_zmask && r300->z_compression) { +    if (zmask_in_use && r300->z_compression) {          z->zb_bw_cntl |= R300_RD_COMP_ENABLE;          if (r300->z_decomp_rd == false)              z->zb_bw_cntl |= R300_WR_COMP_ENABLE; diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c index c047a127ba..4a63ed7fc1 100644 --- a/src/gallium/drivers/r300/r300_state_derived.c +++ b/src/gallium/drivers/r300/r300_state_derived.c @@ -738,7 +738,7 @@ static void r300_flush_depth_textures(struct r300_context *r300)                  continue;              for (level = 0; level <= tex->last_level; level++) -                if (r300_texture(tex)->dirty_zmask[level]) { +                if (r300_texture(tex)->zmask_in_use[level]) {                      /* We don't handle 3D textures and cubemaps yet. */                      r300_flush_depth_stencil(&r300->context, tex,                                               u_subresource(0, level), 0);  | 
