From 2050f2ab96f923112d3475a655b31c8f5145a800 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 28 Jan 2011 01:01:01 +0100 Subject: r300g: fix and re-enable 8x8 zbuffer compression mode Also cleanup the whole thing. --- src/gallium/drivers/r300/r300_hyperz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/r300/r300_hyperz.c') diff --git a/src/gallium/drivers/r300/r300_hyperz.c b/src/gallium/drivers/r300/r300_hyperz.c index d996d19175..7767275e67 100644 --- a/src/gallium/drivers/r300/r300_hyperz.c +++ b/src/gallium/drivers/r300/r300_hyperz.c @@ -168,10 +168,10 @@ static void r300_update_hyperz(struct r300_context* r300) if (!r300->zmask_decompress) { z->zb_bw_cntl |= R300_WR_COMP_ENABLE; } + } - if (r300->screen->caps.z_compress == R300_ZCOMP_8X8) { - z->gb_z_peq_config |= R300_GB_Z_PEQ_CONFIG_Z_PEQ_SIZE_8_8; - } + if (zstex->desc.zcomp8x8[fb->zsbuf->u.tex.level]) { + z->gb_z_peq_config |= R300_GB_Z_PEQ_CONFIG_Z_PEQ_SIZE_8_8; } if (hiz_in_use && r300_can_hiz(r300)) { -- cgit v1.2.3