vulkaninfo: Fix padding for integer dot product
authorCharles Giessen <charles@lunarg.com>
Tue, 1 Feb 2022 20:21:30 +0000 (13:21 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 2 Feb 2022 20:49:13 +0000 (13:49 -0700)
The 1.3 update forgot to rename
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES_KHR to
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES as this
is the non-aliased name. Without it, the fix wouldn't be applied.

scripts/vulkaninfo_generator.py

index f4a0012..1997e0e 100644 (file)
@@ -610,7 +610,7 @@ def PrintChainBuilders(listName, structures, all_structures):
                 # We need to artificially increase it just so the driver doesn't write 'out of bounds' and cause
                 # difficult to debug crashes. This bug comes from the in-development version of the extension having
                 # a larger size than the final version, so older drivers try to writ to members which don't exist.
-                if s.sTypeName == "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES_KHR":
+                if s.sTypeName == "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES":
                     out += " + 256" # Really make sure a driver wont write out of bounds
                 out += f"}},\n"
             out += AddGuardFooter(s)