r300g: fix printing whether Z compression is enabled
authorMarek Olšák <maraeo@gmail.com>
Mon, 28 Feb 2011 21:57:50 +0000 (22:57 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 28 Feb 2011 23:46:58 +0000 (00:46 +0100)
src/gallium/drivers/r300/r300_context.c

index 61041bfce23d9b5161f46f68916bcb3818542cc9..db249014e5f9932117f4f7ce7b1b2bc1a9292bed 100644 (file)
@@ -519,7 +519,8 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
                 rws->get_value(rws, R300_VID_GART_SIZE) >> 20,
                 rws->get_value(rws, R300_VID_VRAM_SIZE) >> 20,
                 rws->get_value(rws, R300_CAN_AACOMPRESS) ? "YES" : "NO",
-                rws->get_value(rws, R300_CAN_HYPERZ) ? "YES" : "NO",
+                rws->get_value(rws, R300_CAN_HYPERZ) &&
+                r300->screen->caps.zmask_ram ? "YES" : "NO",
                 rws->get_value(rws, R300_CAN_HYPERZ) &&
                 r300->screen->caps.hiz_ram ? "YES" : "NO");
     }