winevulkan: Change blacklist to a more neutral word.
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d0a24609fe
commit
9b54cb9b8b
|
@ -84,7 +84,7 @@ WINE_VULKAN_THUNKS_H = "vulkan_thunks.h"
|
|||
EXT_BASE = 1000000000
|
||||
EXT_BLOCK_SIZE = 1000
|
||||
|
||||
BLACKLISTED_EXTENSIONS = [
|
||||
UNSUPPORTED_EXTENSIONS = [
|
||||
# Instance extensions
|
||||
"VK_EXT_debug_report",
|
||||
# Handling of VK_EXT_debug_report requires some consideration. The win32
|
||||
|
@ -2607,7 +2607,7 @@ class VkRegistry(object):
|
|||
def _is_extension_supported(self, extension):
|
||||
# We disable some extensions as either we haven't implemented
|
||||
# support yet or because they are for platforms other than win32.
|
||||
return extension not in BLACKLISTED_EXTENSIONS
|
||||
return extension not in UNSUPPORTED_EXTENSIONS
|
||||
|
||||
def _mark_command_required(self, command):
|
||||
""" Helper function to mark a certain command and the datatypes it needs as required."""
|
||||
|
@ -2847,13 +2847,12 @@ class VkRegistry(object):
|
|||
return
|
||||
|
||||
if not self._is_extension_supported(ext_name):
|
||||
LOGGER.debug("Skipping blacklisted extension: {0}".format(ext_name))
|
||||
LOGGER.debug("Skipping unsupported extension: {0}".format(ext_name))
|
||||
return
|
||||
elif "requires" in ext.attrib:
|
||||
# Check if this extension builds on top of another blacklisted
|
||||
# extension.
|
||||
# Check if this extension builds on top of another unsupported extension.
|
||||
requires = ext.attrib["requires"].split(",")
|
||||
if len(set(requires).intersection(BLACKLISTED_EXTENSIONS)) > 0:
|
||||
if len(set(requires).intersection(UNSUPPORTED_EXTENSIONS)) > 0:
|
||||
return
|
||||
|
||||
LOGGER.debug("Loading extension: {0}".format(ext_name))
|
||||
|
|
Loading…
Reference in New Issue