mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 14:28:08 +02:00
vulkan/util: drop workaround for ANB struct
VkPhysicalDevicePresentationPropertiesANDROID now properly extends VkPhysicalDeviceProperties2. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37590>
This commit is contained in:
parent
0dc5caec36
commit
2ea551e85a
1 changed files with 1 additions and 11 deletions
|
|
@ -70,15 +70,6 @@ OUT_ARRAY_COUNTS = OUT_ARRAYS.values()
|
||||||
SPECIALIZED_PROPERTY_STRUCTS = [
|
SPECIALIZED_PROPERTY_STRUCTS = [
|
||||||
]
|
]
|
||||||
|
|
||||||
# Properties not extending VkPhysicalDeviceProperties2 in the XML,
|
|
||||||
# but which might still be present (in Android for instance)
|
|
||||||
#
|
|
||||||
# TODO: remove the workaround after spec registry fix is merged:
|
|
||||||
# https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/7587
|
|
||||||
ANDROID_PROPERTIES = [
|
|
||||||
"VkPhysicalDevicePresentationPropertiesANDROID",
|
|
||||||
]
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Property:
|
class Property:
|
||||||
decl: str
|
decl: str
|
||||||
|
|
@ -289,8 +280,7 @@ def get_property_structs(doc, api, beta):
|
||||||
full_name = _type.attrib.get("name")
|
full_name = _type.attrib.get("name")
|
||||||
|
|
||||||
if _type.attrib.get("structextends") != "VkPhysicalDeviceProperties2":
|
if _type.attrib.get("structextends") != "VkPhysicalDeviceProperties2":
|
||||||
if full_name not in ANDROID_PROPERTIES:
|
continue
|
||||||
continue
|
|
||||||
|
|
||||||
if full_name not in required:
|
if full_name not in required:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue