From: Marek Olšák Date: Tue, 27 Oct 2015 22:10:51 +0000 (+0100) Subject: radeonsi: fix occlusion queries on Fiji X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfc14796b077444011c81f544ceec5d8592c5c77;p=mesa.git radeonsi: fix occlusion queries on Fiji Tested. --- diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 27e1269f400..1ed5eb794d3 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