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

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

Fixes: 083793a39d ("vulkan: Allow beta extensions for physical device properties")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27394>
(cherry picked from commit c35247ab20)
This commit is contained in:
Eric Engestrom
2024-01-31 17:21:43 +00:00
committed by Eric Engestrom
parent 7d172ebfcb
commit 7934b44b8f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -223,7 +223,7 @@ def get_property_structs(doc, api, beta):
# Skip extensions with a define for now
guard = required[full_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