summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-05-16 17:05:02 +0200
committerEmil Velikov <[email protected]>2017-06-14 12:47:58 +0100
commitf66de22af451cf9d834ff251888c91590443f238 (patch)
tree93ee61f67b2137ed81713d7dc783ce466207de42
parent8bd7d8c042e4b19972677a3d42853c97741fd061 (diff)
radv: fewer than 8 RBs are possible
This fixes the subsequent assertion on Bonaire. Reviewed-by: Dave Airlie <[email protected]> (cherry picked from commit 388d36dfd180bc16b9d2803d9a213aa5e5ee011f)
-rw-r--r--src/amd/vulkan/radv_query.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index 7e0fd1d073f..04e5e38a827 100644
--- a/src/amd/vulkan/radv_query.c
+++ b/src/amd/vulkan/radv_query.c
@@ -46,8 +46,6 @@ static unsigned get_max_db(struct radv_device *device)
if (device->physical_device->rad_info.chip_class == SI)
num_db = 8;
- else
- num_db = MAX2(8, num_db);
/* Otherwise we need to change the query reset procedure */
assert(rb_mask == ((1ull << num_db) - 1));