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 <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
6cc79e4411
commit
e71a87775e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue