diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 4ce98098b5c..76074c30f7b 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -484,7 +484,7 @@ static const struct debug_control radv_perftest_options[] = { const char * radv_get_perftest_option_name(int id) { - assert(id < ARRAY_SIZE(radv_debug_options) - 1); + assert(id < ARRAY_SIZE(radv_perftest_options) - 1); return radv_perftest_options[id].string; }