radv: add a new debug option called RADV_DEBUG=noshaderballot
[mesa.git] / src / amd / vulkan / radv_device.c
index cc45ac95c08f7d197047f94659bdc992c73a0519..f77430d55be3d7bbac85ea2f575c1c41389f217f 100644 (file)
@@ -383,7 +383,8 @@ radv_physical_device_init(struct radv_physical_device *device,
                                          device->rad_info.family == CHIP_RENOIR ||
                                          device->rad_info.chip_class >= GFX10;
 
-       device->use_shader_ballot = device->instance->perftest_flags & RADV_PERFTEST_SHADER_BALLOT;
+       device->use_shader_ballot = device->rad_info.chip_class >= GFX8 &&
+                                   device->instance->perftest_flags & RADV_PERFTEST_SHADER_BALLOT;
 
        /* Determine the number of threads per wave for all stages. */
        device->cs_wave_size = 64;
@@ -495,6 +496,7 @@ static const struct debug_control radv_debug_options[] = {
        {"nobinning", RADV_DEBUG_NOBINNING},
        {"noloadstoreopt", RADV_DEBUG_NO_LOAD_STORE_OPT},
        {"nongg", RADV_DEBUG_NO_NGG},
+       {"noshaderballot", RADV_DEBUG_NO_SHADER_BALLOT},
        {NULL, 0}
 };