Module: Mesa
Branch: master
Commit: 388d36dfd180bc16b9d2803d9a213aa5e5ee011f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=388d36dfd180bc16b9d2803d9a213aa5e5ee011f

Author: Nicolai Hähnle <[email protected]>
Date:   Tue May 16 17:05:02 2017 +0200

radv: fewer than 8 RBs are possible

This fixes the subsequent assertion on Bonaire.

Reviewed-by: Dave Airlie <[email protected]>

---

 src/amd/vulkan/radv_query.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index 55e4185772..6d05612579 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));

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to