From: Andres Rodriguez Date: Thu, 18 Oct 2018 19:32:31 +0000 (-0400) Subject: radv: fix check for perftest options size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e71a87775e48f2e26864e6c2198c7625e27bbab1;p=mesa.git radv: fix check for perftest options size It was using the debug options array size. CC: mesa-stable@lists.freedesktop.org Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 6eb37472992..e7d511bdb97 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -483,7 +483,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; }