zink: add ZINK_DEBUG=noshobj to disable EXT_shader_object

for debugging/testing

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22725>
This commit is contained in:
Mike Blumenkrantz 2023-04-03 12:52:32 -04:00 committed by Marge Bot
parent 8650aa0560
commit 492a1cf49e
3 changed files with 5 additions and 1 deletions

View file

@ -307,6 +307,8 @@ variable:
Print info about mapped VRAM
``flushsync``
Force synchronous flushes/presents
``noshobj``
Disable EXT_shader_object
Vulkan Validation Layers
^^^^^^^^^^^^^^^^^^^^^^^^

View file

@ -92,6 +92,7 @@ zink_debug_options[] = {
{ "norp", ZINK_DEBUG_NORP, "Disable renderpass tracking/optimizations" },
{ "map", ZINK_DEBUG_MAP, "Track amount of mapped VRAM" },
{ "flushsync", ZINK_DEBUG_FLUSHSYNC, "Force synchronous flushes/presents" },
{ "noshobj", ZINK_DEBUG_NOSHOBJ, "Disable EXT_shader_object" },
DEBUG_NAMED_VALUE_END
};
@ -2409,7 +2410,7 @@ init_driver_workarounds(struct zink_screen *screen)
}
/* TODO: maybe compile multiple variants for different set counts for compact mode? */
if (screen->info.props.limits.maxBoundDescriptorSets < ZINK_DESCRIPTOR_ALL_TYPES ||
zink_debug & ZINK_DEBUG_COMPACT)
zink_debug & (ZINK_DEBUG_COMPACT | ZINK_DEBUG_NOSHOBJ))
screen->info.have_EXT_shader_object = false;
if (screen->info.line_rast_feats.stippledRectangularLines &&
screen->info.line_rast_feats.stippledBresenhamLines &&

View file

@ -221,6 +221,7 @@ enum zink_debug {
ZINK_DEBUG_NORP = (1<<10),
ZINK_DEBUG_MAP = (1<<11),
ZINK_DEBUG_FLUSHSYNC = (1<<12),
ZINK_DEBUG_NOSHOBJ = (1<<13),
};
enum zink_pv_emulation_primitive {