aco: allow nir divergence to be printed again

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32990>
This commit is contained in:
Georg Lehmann
2025-06-18 09:04:25 +02:00
committed by Marge Bot
parent bc049216cc
commit 88753ddd1d

View File

@@ -377,6 +377,9 @@ init_context(isel_context* ctx, nir_shader* shader)
/* we'll need these for isel */
nir_metadata_require(impl, nir_metadata_block_index);
/* Our definition of divergence is slightly different, but we still want nir to print it. */
impl->valid_metadata |= nir_metadata_divergence;
if (ctx->options->dump_preoptir) {
fprintf(stderr, "NIR shader before instruction selection:\n");
nir_print_shader(shader, stderr);