radv: fix check for perftest options size
authorAndres Rodriguez <andresx7@gmail.com>
Thu, 18 Oct 2018 19:32:31 +0000 (15:32 -0400)
committerAndres Rodriguez <andresx7@gmail.com>
Thu, 18 Oct 2018 19:42:20 +0000 (15:42 -0400)
It was using the debug options array size.

CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index 6eb37472992151dafb99aadf3beb176de65bfa84..e7d511bdb97d22c386dbb472a6f0856c69883f96 100644 (file)
@@ -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;
 }