diff options
Diffstat (limited to 'lib/mesa/src/gallium/drivers/r300/r300_hyperz.c')
-rw-r--r-- | lib/mesa/src/gallium/drivers/r300/r300_hyperz.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/mesa/src/gallium/drivers/r300/r300_hyperz.c b/lib/mesa/src/gallium/drivers/r300/r300_hyperz.c index 7e146dfe5..e043c9ca0 100644 --- a/lib/mesa/src/gallium/drivers/r300/r300_hyperz.c +++ b/lib/mesa/src/gallium/drivers/r300/r300_hyperz.c @@ -68,63 +68,63 @@ static unsigned r300_get_sc_hz_max(struct r300_context *r300) return func >= PIPE_FUNC_GREATER ? R300_SC_HYPERZ_MAX : R300_SC_HYPERZ_MIN; } -static boolean r300_is_hiz_func_valid(struct r300_context *r300) +static bool r300_is_hiz_func_valid(struct r300_context *r300) { struct r300_dsa_state *dsa = r300->dsa_state.state; unsigned func = dsa->dsa.depth_func; if (r300->hiz_func == HIZ_FUNC_NONE) - return TRUE; + return true; /* func1 is less/lessthan */ if (r300->hiz_func == HIZ_FUNC_MAX && (func == PIPE_FUNC_GEQUAL || func == PIPE_FUNC_GREATER)) - return FALSE; + return false; /* func1 is greater/greaterthan */ if (r300->hiz_func == HIZ_FUNC_MIN && (func == PIPE_FUNC_LESS || func == PIPE_FUNC_LEQUAL)) - return FALSE; + return false; - return TRUE; + return true; } -static boolean r300_dsa_stencil_op_not_keep(struct pipe_stencil_state *s) +static bool r300_dsa_stencil_op_not_keep(struct pipe_stencil_state *s) { return s->enabled && (s->fail_op != PIPE_STENCIL_OP_KEEP || s->zfail_op != PIPE_STENCIL_OP_KEEP); } -static boolean r300_hiz_allowed(struct r300_context *r300) +static bool r300_hiz_allowed(struct r300_context *r300) { struct r300_dsa_state *dsa = r300->dsa_state.state; struct r300_screen *r300screen = r300->screen; if (r300_fragment_shader_writes_depth(r300_fs(r300))) - return FALSE; + return false; if (r300->query_current) - return FALSE; + return false; /* If the depth function is inverted, HiZ must be disabled. */ if (!r300_is_hiz_func_valid(r300)) - return FALSE; + return false; /* if stencil fail/zfail op is not KEEP */ if (r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[0]) || r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[1])) - return FALSE; + return false; if (dsa->dsa.depth_enabled) { /* if depth func is EQUAL pre-r500 */ if (dsa->dsa.depth_func == PIPE_FUNC_EQUAL && !r300screen->caps.is_r500) - return FALSE; + return false; /* if depth func is NOTEQUAL */ if (dsa->dsa.depth_func == PIPE_FUNC_NOTEQUAL) - return FALSE; + return false; } - return TRUE; + return true; } static void r300_update_hyperz(struct r300_context* r300) @@ -190,7 +190,7 @@ static void r300_update_hyperz(struct r300_context* r300) /* If writemask is disabled, the HiZ memory will not be changed, * so we can keep its content for later. */ if (dsa->dsa.depth_writemask) { - r300->hiz_in_use = FALSE; + r300->hiz_in_use = false; } return; } @@ -218,7 +218,7 @@ static void r300_update_hyperz(struct r300_context* r300) /* The ZTOP state */ /*****************************************************************************/ -static boolean r300_dsa_alpha_test_enabled( +static bool r300_dsa_alpha_test_enabled( struct pipe_depth_stencil_alpha_state *dsa) { /* We are interested only in the cases when alpha testing can kill |