From af2cea8f84d5fab12fec98f4eaed9d308c2e6657 Mon Sep 17 00:00:00 2001 From: M Henning Date: Tue, 13 Feb 2024 06:23:40 -0500 Subject: [PATCH] nak: Remove assert on nir->info.outputs_written nir->info.outputs_written isn't used for fragment shaders except as an early out a few lines above this, so we don't rely on this property. My best guess is that this was intended to check if the information from nir_gather_info is stale, but dead variables fail the assert even if the info is up to date. Part-of: --- src/nouveau/compiler/nak_nir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nouveau/compiler/nak_nir.c b/src/nouveau/compiler/nak_nir.c index 0fe2eb0d8f9..caaf3dadff4 100644 --- a/src/nouveau/compiler/nak_nir.c +++ b/src/nouveau/compiler/nak_nir.c @@ -1043,7 +1043,6 @@ nak_nir_lower_fs_outputs(nir_shader *nir) nir->num_outputs = 0; nir_foreach_shader_out_variable(var, nir) { - assert(nir->info.outputs_written & BITFIELD_BIT(var->data.location)); switch (var->data.location) { case FRAG_RESULT_DEPTH: assert(var->data.index == 0);