radeonsi: fix occlusion queries on Hawaii
authorMarek Olšák <marek.olsak@amd.com>
Sat, 26 Jul 2014 10:57:28 +0000 (12:57 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 28 Jul 2014 21:57:08 +0000 (23:57 +0200)
This was just a guess - and it worked!

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index 7defe86e6860589aa7cd8fba1c110d4057c8d6f6..3476021138ac84e9058224a120421ddbfaf22822 100644 (file)
@@ -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;