From: Charles Giessen Date: Tue, 1 Feb 2022 20:21:30 +0000 (-0700) Subject: vulkaninfo: Fix padding for integer dot product X-Git-Tag: upstream/1.3.208~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48ebdbba491fa2d2a5bc27eee7b1a25fcec2ed83;p=platform%2Fupstream%2FVulkan-Tools.git vulkaninfo: Fix padding for integer dot product 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. --- diff --git a/scripts/vulkaninfo_generator.py b/scripts/vulkaninfo_generator.py index f4a0012..1997e0e 100644 --- a/scripts/vulkaninfo_generator.py +++ b/scripts/vulkaninfo_generator.py @@ -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)