winevulkan: Skip commands which are declared but not defined.
Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com> Signed-off-by: Piers Daniell <pdaniell@nvidia.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2d6462cdee
commit
60eff6d65a
|
@ -2936,6 +2936,12 @@ class VkRegistry(object):
|
|||
commands = ext.findall("require/command")
|
||||
for command in commands:
|
||||
cmd_name = command.attrib["name"]
|
||||
# Need to verify that the command is defined, and otherwise skip it.
|
||||
# vkCreateScreenSurfaceQNX is declared in <extensions> but not defined in
|
||||
# <commands>. A command without a definition cannot be enabled, so it's valid for
|
||||
# the XML file to handle this, but because of the manner in which we parse the XML
|
||||
# file we pre-populate from <commands> before we check if a command is enabled.
|
||||
if cmd_name in self.funcs:
|
||||
self.funcs[cmd_name].extensions.append(ext_name)
|
||||
|
||||
# Some extensions are not ready or have numbers reserved as a place holder.
|
||||
|
|
Loading…
Reference in New Issue