From e71a87775e48f2e26864e6c2198c7625e27bbab1 Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Date: Thu, 18 Oct 2018 15:32:31 -0400 Subject: [PATCH] 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 --- src/amd/vulkan/radv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }