diff options
author | Marek Olšák <[email protected]> | 2014-07-26 12:57:28 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-07-28 23:57:08 +0200 |
commit | 71ce92200e0314a0878088dec8c0c2a0270bc4dc (patch) | |
tree | 14a910c5106cb4748e6feeb18d0aeaf8e7207f10 /src/gallium/drivers | |
parent | 156b7e244c93e82f5d6b19caae1ec25e7f0e91bb (diff) |
radeonsi: fix occlusion queries on Hawaii
This was just a guess - and it worked!
Cc: [email protected]
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 7defe86e686..3476021138a 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -142,7 +142,13 @@ bool r600_common_context_init(struct r600_common_context *rctx, rctx->ws = rscreen->ws; rctx->family = rscreen->family; rctx->chip_class = rscreen->chip_class; - rctx->max_db = rscreen->chip_class >= EVERGREEN ? 8 : 4; + + if (rscreen->family == CHIP_HAWAII) + rctx->max_db = 16; + else if (rscreen->chip_class >= EVERGREEN) + rctx->max_db = 8; + else + rctx->max_db = 4; rctx->b.transfer_map = u_transfer_map_vtbl; rctx->b.transfer_flush_region = u_default_transfer_flush_region; |