radv: fewer than 8 RBs are possible
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 16 May 2017 15:05:02 +0000 (17:05 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 5 Jun 2017 00:43:47 +0000 (10:43 +1000)
This fixes the subsequent assertion on Bonaire.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_query.c

index 55e4185772ecc5fdaad447fba74b5ae2038bd6c5..6d05612579f4e723589216d77981383cdd85efef 100644 (file)
@@ -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));