diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-02-12 23:37:14 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-02-12 23:37:14 +0100 |
commit | 9ad9a6861a01997fa88fe35089d63348f7b076af (patch) | |
tree | 50bad7ee6815fbf24a24b7a85b51caa110ae6252 /src/gallium/drivers/r300/r300_screen.c | |
parent | 685c3262b945a7f0e9f1f3a9409a12fdda08c828 (diff) | |
download | external_mesa3d-9ad9a6861a01997fa88fe35089d63348f7b076af.zip external_mesa3d-9ad9a6861a01997fa88fe35089d63348f7b076af.tar.gz external_mesa3d-9ad9a6861a01997fa88fe35089d63348f7b076af.tar.bz2 |
r300g: add debug options nozmask and nohiz which disable some hyper-z features
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index f54ba42..0b02206 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -454,6 +454,11 @@ struct pipe_screen* r300_screen_create(struct r300_winsys_screen *rws) r300_init_debug(r300screen); r300_parse_chipset(&r300screen->caps); + if (SCREEN_DBG_ON(r300screen, DBG_NO_ZMASK)) + r300screen->caps.zmask_ram = 0; + if (SCREEN_DBG_ON(r300screen, DBG_NO_HIZ)) + r300screen->caps.hiz_ram = 0; + r300screen->caps.index_bias_supported = r300screen->caps.is_r500 && rws->get_value(rws, R300_VID_DRM_2_3_0); |