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:
Andres Rodriguez 2018-10-18 15:32:31 -04:00
parent 6cc79e4411
commit e71a87775e
1 changed files with 1 additions and 1 deletions

View 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;
}