From 12509c0f1ee8c22ae163017f0a5e7b8a9d983a17 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Tue, 29 Jul 2025 11:42:35 +0200 Subject: [PATCH] vulkan/utils_gen: fix for python 3.14 Python 3.14+ has added more type checking. This patch fixes usage Fixes: https://github.com/haasn/libplacebo/issues/335 Signed-off-by: Nicolas Chauvet --- src/vulkan/utils_gen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vulkan/utils_gen.py b/src/vulkan/utils_gen.py index 9a97d35f3..9b803d82b 100644 --- a/src/vulkan/utils_gen.py +++ b/src/vulkan/utils_gen.py @@ -202,7 +202,8 @@ def find_registry_xml(datadir): if not xmlfile or xmlfile == '': xmlfile = find_registry_xml(datadir) - registry = VkXML(ET.parse(xmlfile)) + tree = ET.parse(xmlfile) + registry = VkXML(tree.getroot()) with open(outfile, 'w') as f: f.write(TEMPLATE.render( vkresults = get_vkenum(registry, 'VkResult'),