mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
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>
(cherry picked from commit e71a87775e)
This commit is contained in:
parent
8da28e563b
commit
8c4ff233b1
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,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…
Add table
Reference in a new issue