From ace02ca84b697d54bf742c9f80ee5fc0ca19c69e Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Fri, 24 Feb 2023 15:29:00 -0700 Subject: vulkaninfo: Fix wrong stripping in flag strings The QUEUE_OPTICAL_FLOW_BIT_NV was getting the 'V' cut off of it, this commit fixes that so that it isn't being removed, as well as making the output more consistent. --- scripts/vulkaninfo_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vulkaninfo_generator.py b/scripts/vulkaninfo_generator.py index 0834a2ae..cea74909 100644 --- a/scripts/vulkaninfo_generator.py +++ b/scripts/vulkaninfo_generator.py @@ -500,7 +500,7 @@ def PrintBitMaskToString(bitmask, name, gen): for v in bitmask.options: out += f" if ({v.name} & value) {{\n" out += f' if (is_first) {{ is_first = false; }} else {{ out += " | "; }}\n' - out += f' out += "{str(v.name).strip("VK_").strip("_BIT")}";\n' + out += f' out += "{str(v.name)[3:]}";\n' out += f" }}\n" out += f" return out;\n" out += f"}}\n" -- cgit v1.2.3