OSDN Git Service

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 6eb3747..e7d511b 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;
 }