diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index 4ac2589a9a7..ff5ad12a988 100644 --- a/src/gallium/drivers/r300/r300_blit.c +++ b/src/gallium/drivers/r300/r300_blit.c @@ -272,6 +272,11 @@ static void r300_clear(struct pipe_context* pipe, } else { zmask_clear = r300_fast_zclear_allowed(r300, buffers); hiz_clear = r300_hiz_clear_allowed(r300); + /* FIXME: only for testing! */ + /*zmask_clear = FALSE;*/ + /*zmask_clear = TRUE; // - this alone looks bad, bothfalse look good, zmaks_clear only false hiz_clear untouched is good */ + /*hiz_clear = FALSE;*/ + /*hiz_clear = TRUE; // enabling this and falsing zmask_clear shows picture but FPS is lower in glxgears...*/ } /* If we need Hyper-Z. */ @@ -292,12 +297,14 @@ static void r300_clear(struct pipe_context* pipe, /* Setup Hyper-Z clears. */ if (r300->hyperz_enabled) { if (zmask_clear) { +/* hyperz_dcv = hyperz->zb_depthclearvalue = r300_depth_clear_value(fb->zsbuf->format, depth, stencil); r300_mark_atom_dirty(r300, &r300->zmask_clear); r300_mark_atom_dirty(r300, &r300->gpu_flush); buffers &= ~PIPE_CLEAR_DEPTHSTENCIL; +*/ } if (hiz_clear) {