iris: add sync_compile option
This can be useful to simplify debugging compiler issues.
Similar to 9445a4ab43
("radeonsi: add radeonsi_sync_compile option").
v2: Actually query the driconf to set screen->driconf.sync_compile.
Noticed by Ken.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11229>
This commit is contained in:
parent
2d1a2a1c09
commit
9011cc7405
|
@ -4,6 +4,7 @@ DRI_CONF_SECTION_DEBUG
|
|||
DRI_CONF_DUAL_COLOR_BLEND_BY_LOCATION(false)
|
||||
DRI_CONF_DISABLE_THROTTLING(false)
|
||||
DRI_CONF_ALWAYS_FLUSH_CACHE(false)
|
||||
DRI_CONF_OPT_B(sync_compile, false, "Always compile synchronously (will cause stalls)")
|
||||
DRI_CONF_SECTION_END
|
||||
|
||||
DRI_CONF_SECTION_PERFORMANCE
|
||||
|
|
|
@ -816,6 +816,8 @@ iris_screen_create(int fd, const struct pipe_screen_config *config)
|
|||
driQueryOptionb(config->options, "disable_throttling");
|
||||
screen->driconf.always_flush_cache =
|
||||
driQueryOptionb(config->options, "always_flush_cache");
|
||||
screen->driconf.sync_compile =
|
||||
driQueryOptionb(config->options, "sync_compile");
|
||||
|
||||
screen->precompile = env_var_as_boolean("shader_precompile", true);
|
||||
|
||||
|
|
|
@ -180,6 +180,7 @@ struct iris_screen {
|
|||
bool dual_color_blend_by_location;
|
||||
bool disable_throttling;
|
||||
bool always_flush_cache;
|
||||
bool sync_compile;
|
||||
} driconf;
|
||||
|
||||
/** Does the kernel support various features (KERNEL_HAS_* bitfield)? */
|
||||
|
|
Loading…
Reference in New Issue