mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 02:00:21 +01:00
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:
parent
a5d59a50a9
commit
3e2df67874
1 changed files with 7 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue