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 commitc35247ab20
)
This commit is contained in:

committed by
Eric Engestrom

parent
7d172ebfcb
commit
7934b44b8f
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user