zink: add ZINK_DEBUG=noopt
it's often useful to disable optimized pipeline compiles for debugging Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22899>
This commit is contained in:

committed by
Marge Bot

parent
4d39ff6751
commit
0fb5f81ab6
@@ -311,6 +311,8 @@ variable:
|
||||
Disable EXT_shader_object
|
||||
``optimal_keys``
|
||||
Debug/use optimal_keys
|
||||
``noopt``
|
||||
Disable async optimized pipeline compiles
|
||||
|
||||
Vulkan Validation Layers
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@@ -94,6 +94,7 @@ zink_debug_options[] = {
|
||||
{ "flushsync", ZINK_DEBUG_FLUSHSYNC, "Force synchronous flushes/presents" },
|
||||
{ "noshobj", ZINK_DEBUG_NOSHOBJ, "Disable EXT_shader_object" },
|
||||
{ "optimal_keys", ZINK_DEBUG_OPTIMAL_KEYS, "Debug/use optimal_keys" },
|
||||
{ "noopt", ZINK_DEBUG_NOOPT, "Disable async optimized pipeline compiles" },
|
||||
DEBUG_NAMED_VALUE_END
|
||||
};
|
||||
|
||||
@@ -2593,6 +2594,8 @@ init_driver_workarounds(struct zink_screen *screen)
|
||||
screen->driver_workarounds.disable_optimized_compile = true;
|
||||
break;
|
||||
default:
|
||||
if (zink_debug & ZINK_DEBUG_NOOPT)
|
||||
screen->driver_workarounds.disable_optimized_compile = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -223,6 +223,7 @@ enum zink_debug {
|
||||
ZINK_DEBUG_FLUSHSYNC = (1<<12),
|
||||
ZINK_DEBUG_NOSHOBJ = (1<<13),
|
||||
ZINK_DEBUG_OPTIMAL_KEYS = (1<<14),
|
||||
ZINK_DEBUG_NOOPT = (1<<15),
|
||||
};
|
||||
|
||||
enum zink_pv_emulation_primitive {
|
||||
|
Reference in New Issue
Block a user