Module: Mesa
Branch: master
Commit: bfc14796b077444011c81f544ceec5d8592c5c77
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfc14796b077444011c81f544ceec5d8592c5c77

Author: Marek Olšák <[email protected]>
Date:   Tue Oct 27 23:10:51 2015 +0100

radeonsi: fix occlusion queries on Fiji

Tested.

---

 src/gallium/drivers/radeon/r600_pipe_common.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c 
b/src/gallium/drivers/radeon/r600_pipe_common.c
index 27e1269..1ed5eb7 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -239,8 +239,8 @@ bool r600_common_context_init(struct r600_common_context 
*rctx,
        rctx->family = rscreen->family;
        rctx->chip_class = rscreen->chip_class;
 
-       if (rscreen->family == CHIP_HAWAII)
-               rctx->max_db = 16;
+       if (rscreen->chip_class >= CIK)
+               rctx->max_db = MAX2(8, rscreen->info.r600_num_backends);
        else if (rscreen->chip_class >= EVERGREEN)
                rctx->max_db = 8;
        else

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to