mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 17:50:32 +01:00
intel/compiler: Use INTEL_DEBUG=blorp to dump blorp compute shaders
Make INTEL_DEBUG=blorp dump the blorp compute shaders instead using
the general INTEL_DEBUG=cs which is now reserved for actual compute
programs.
Ref: 05933fb0f7 ("intel/compiler: Use INTEL_DEBUG=blorp to dump blorp shaders")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11564>
This commit is contained in:
parent
bd103f9483
commit
51528aeb60
2 changed files with 5 additions and 1 deletions
|
|
@ -1673,6 +1673,9 @@ struct brw_compile_cs_params {
|
|||
void *log_data;
|
||||
|
||||
char *error_str;
|
||||
|
||||
/* If unset, DEBUG_CS is used. */
|
||||
uint64_t debug_flag;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -10109,7 +10109,8 @@ brw_compile_cs(const struct brw_compiler *compiler,
|
|||
struct brw_cs_prog_data *prog_data = params->prog_data;
|
||||
int shader_time_index = params->shader_time ? params->shader_time_index : -1;
|
||||
|
||||
const bool debug_enabled = INTEL_DEBUG & DEBUG_CS;
|
||||
const bool debug_enabled =
|
||||
INTEL_DEBUG & (params->debug_flag ? params->debug_flag : DEBUG_CS);
|
||||
|
||||
prog_data->base.stage = MESA_SHADER_COMPUTE;
|
||||
prog_data->base.total_shared = nir->info.shared_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue