mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
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:
parent
8650aa0560
commit
492a1cf49e
3 changed files with 5 additions and 1 deletions
|
|
@ -307,6 +307,8 @@ variable:
|
|||
Print info about mapped VRAM
|
||||
``flushsync``
|
||||
Force synchronous flushes/presents
|
||||
``noshobj``
|
||||
Disable EXT_shader_object
|
||||
|
||||
Vulkan Validation Layers
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -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 &&
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue