vk/util: fix 'beta' check for physical device features

`--beta` is a string, not a bool (although really it should be, but that's a bigger change).

Fixes: a7141a6f8a ("vulkan: Allow beta extensions for physical device features")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27394>
(cherry picked from commit 794ec7f0a1)
This commit is contained in:
Eric Engestrom 2024-01-31 17:21:43 +00:00 committed by Eric Engestrom
parent e79ec6621b
commit 8c6de60c54
2 changed files with 2 additions and 2 deletions

View file

@ -2304,7 +2304,7 @@
"description": "vk/util: fix 'beta' check for physical device features",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "a7141a6f8a1112575c73281428fda0f8a798c857",
"notes": null

View file

@ -367,7 +367,7 @@ def get_feature_structs(doc, api, beta):
# Skip extensions with a define for now
guard = required[_type.attrib['name']].guard
if guard is not None and (guard != "VK_ENABLE_BETA_EXTENSIONS" or not beta):
if guard is not None and (guard != "VK_ENABLE_BETA_EXTENSIONS" or beta != "true"):
continue
# find Vulkan structure type