diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-01-28 01:01:01 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-01-28 01:04:51 +0100 |
commit | 2050f2ab96f923112d3475a655b31c8f5145a800 (patch) | |
tree | 620884683ee9c64212168d4d986661e82d16d1bf /src/gallium/drivers/r300/r300_hyperz.c | |
parent | 82e60236a950100bda7e00308c9b57861274608c (diff) |
r300g: fix and re-enable 8x8 zbuffer compression mode
Also cleanup the whole thing.
Diffstat (limited to 'src/gallium/drivers/r300/r300_hyperz.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_hyperz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_hyperz.c b/src/gallium/drivers/r300/r300_hyperz.c index d996d191755..7767275e67e 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)) { |