mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 08:30:10 +01:00
driconf: Make sure that the range check on the defaults actually works.
Fixes: 8a05d6ffc6 ("driconf: Make the driver's declarations be structs instead of XML.")
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7012>
This commit is contained in:
parent
24b4a63b3d
commit
455bfecdff
1 changed files with 2 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ driParseOptionInfo(driOptionCache *info,
|
|||
assert(!optinfo->name); /* No duplicate options in your list. */
|
||||
|
||||
optinfo->type = opt->info.type;
|
||||
optinfo->range = opt->info.range;
|
||||
XSTRDUP(optinfo->name, name);
|
||||
|
||||
switch (opt->info.type) {
|
||||
|
|
@ -181,6 +182,7 @@ driParseOptionInfo(driOptionCache *info,
|
|||
unreachable("handled above");
|
||||
}
|
||||
|
||||
/* Built-in default values should always be valid. */
|
||||
assert(checkValue(optval, optinfo));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue