jay: don't print internal without the flag

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41064>
This commit is contained in:
Alyssa Rosenzweig 2026-04-16 10:09:23 -04:00 committed by Marge Bot
parent 3a73c76373
commit a964f321a5
3 changed files with 14 additions and 6 deletions

View file

@ -2587,7 +2587,10 @@ jay_compile(const struct intel_device_info *devinfo,
union brw_any_prog_key *key)
{
jay_debug = debug_get_option_jay_debug();
bool debug = INTEL_DEBUG(intel_debug_flag_for_shader_stage(nir->info.stage));
bool debug =
INTEL_DEBUG(intel_debug_flag_for_shader_stage(nir->info.stage)) &&
!(nir->info.internal || NIR_DEBUG(PRINT_INTERNAL));
unsigned simd_width = jay_process_nir(devinfo, nir, prog_data, key);
if (debug) {
@ -2656,7 +2659,7 @@ jay_compile(const struct intel_device_info *devinfo,
}
struct jay_shader_bin *bin =
jay_to_binary(s, nir->constant_data, nir->constant_data_size);
jay_to_binary(s, nir->constant_data, nir->constant_data_size, debug);
assert(bin->kernel);
ralloc_steal(mem_ctx, bin);

View file

@ -75,8 +75,10 @@ void jay_lower_simd_width(jay_shader *s);
void jay_lower_scoreboard(jay_shader *s);
void jay_insert_fp_mode(jay_shader *shader, uint32_t api, uint32_t float_sizes);
struct jay_shader_bin *
jay_to_binary(jay_shader *s, void *const_data, size_t const_data_size);
struct jay_shader_bin *jay_to_binary(jay_shader *s,
void *const_data,
size_t const_data_size,
bool debug);
#ifdef __cplusplus
} /* extern C */

View file

@ -525,7 +525,10 @@ emit(struct brw_codegen *p,
}
struct jay_shader_bin *
jay_to_binary(jay_shader *s, void *const_data, size_t const_data_size)
jay_to_binary(jay_shader *s,
void *const_data,
size_t const_data_size,
bool debug)
{
struct jay_shader_bin *bin = rzalloc(s, struct jay_shader_bin);
@ -570,7 +573,7 @@ jay_to_binary(jay_shader *s, void *const_data, size_t const_data_size)
brw_compact_instructions(&p, start_offset, disasm);
if (INTEL_DEBUG(intel_debug_flag_for_shader_stage(s->stage)) || !valid) {
if (debug || !valid) {
dump_assembly(p.store, 0, p.next_insn_offset, disasm, NULL, stdout);
}