vulkan/properties: Document RENAMED_PROPERTIES in the property generator

Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26386>
This commit is contained in:
Oskar Viljasaar 2023-11-29 17:03:05 +02:00 committed by Marge Bot
parent a5d59a50a9
commit 3e2df67874

View file

@ -41,6 +41,13 @@ def str_removeprefix(s, prefix):
return s[len(prefix):]
return s
# Some extensions have been promoted to core, their properties are renamed
# in the following hashtable.
# The hashtable takes the form:
# (VkPhysicalDevice{PropertyStruct}, PropertyName): RenamedPropertyName
# Drivers just have to fill the RenamedPropertyName field in their struct
# vk_properties, the runtime will expose the data with the original/right
# name to consumers.
RENAMED_PROPERTIES = {
("DrmPropertiesEXT", "hasPrimary"): "drmHasPrimary",
("DrmPropertiesEXT", "primaryMajor"): "drmPrimaryMajor",