summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-02-28 22:57:50 +0100
committerMarek Olšák <maraeo@gmail.com>2011-03-01 00:46:58 +0100
commit2f665885cda87a533fb224cefaf7a9e98a084601 (patch)
treeec6f170d116ae2f9b11f3d3124f7f748fe629894
parentebf69f2c508e2cb6df1437ef0e31cbc8b808824d (diff)
r300g: fix printing whether Z compression is enabled
-rw-r--r--src/gallium/drivers/r300/r300_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 61041bfce2..db249014e5 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -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");
}