Revert "r300g: allow HiZ with a 16-bit zbuffer"
authorMarek Olšák <maraeo@gmail.com>
Mon, 15 Jul 2013 21:39:39 +0000 (23:39 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 15 Jul 2013 21:46:01 +0000 (23:46 +0200)
This reverts commit 631c631cbf5b7e84e42a7cfffa1c206d63143370.

https://bugs.freedesktop.org/show_bug.cgi?id=66921

Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/r300/r300_texture_desc.c

index df24e44b209a715ef4e4bc77100a4849212538ca..8d96b5684ad04286f9165c042a77322ea8ec2cf9 100644 (file)
@@ -349,6 +349,7 @@ static void r300_setup_hyperz_properties(struct r300_screen *screen,
     static unsigned hiz_align_y[4] = {8, 8, 8, 32};
 
     if (util_format_is_depth_or_stencil(tex->b.b.format) &&
+        util_format_get_blocksizebits(tex->b.b.format) == 32 &&
         tex->tex.microtile) {
         unsigned i, pipes;