summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-10-27 23:10:51 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-12-12 19:39:01 +0000
commite0b11bcc877025a6578ab612c69262a5d3d4258a (patch)
tree18a88055ab8f8f3af92bcc61aace925df2503083
parent359679cb339f47d28673b04271b2aa17355f02b1 (diff)
radeonsi: fix occlusion queries on Fiji
Tested. (cherry picked from commit bfc14796b077444011c81f544ceec5d8592c5c77)
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.c4
1 files 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 31068c2354d..8b6be193a51 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