zink: add VK_KHR_driver_properties
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 20 Jan 2021 14:24:43 +0000 (09:24 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 Jan 2021 16:31:47 +0000 (16:31 +0000)
yet another extension that breaks naming conventions for structs/enums,
even if it does so in a very sensible way

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8284>

src/gallium/drivers/zink/zink_device_info.py

index 21ea498..60bcfdc 100644 (file)
@@ -64,6 +64,9 @@ EXTENSIONS = [
     Extension("VK_KHR_external_memory"),
     Extension("VK_KHR_external_memory_fd"),
     Extension("VK_KHR_vulkan_memory_model"),
+    Extension("VK_KHR_driver_properties",
+        alias="driver",
+        properties=True),
     Extension("VK_EXT_conditional_rendering",
         alias="cond_render", 
         features=True, 
@@ -134,7 +137,9 @@ VERSIONS = [
 # There exists some inconsistencies regarding the enum constants, fix them.
 # This is basically generated_code.replace(key, value).
 REPLACEMENTS = {
-    "ROBUSTNESS2": "ROBUSTNESS_2"
+    "ROBUSTNESS2": "ROBUSTNESS_2",
+    "PropertiesProperties": "Properties",
+    "PROPERTIES_PROPERTIES": "PROPERTIES",
 }