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:
Jordan Justen 2021-03-29 16:14:03 -07:00 committed by Marge Bot
parent bd103f9483
commit 51528aeb60
2 changed files with 5 additions and 1 deletions

View file

@ -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;
};
/**

View file

@ -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;