vc4 is about to start using the shader info field to set up discard
handling.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
discard = nir_intrinsic_instr_create(shader, nir_intrinsic_discard_if);
discard->src[0] = nir_src_for_ssa(cond);
nir_builder_instr_insert(b, &discard->instr);
+
+ shader->info.fs.uses_discard = true;
}
static void
nir_intrinsic_discard_if);
discard->src[0] = nir_src_for_ssa(cond);
nir_builder_instr_insert(&b, &discard->instr);
+
+ b.shader->info.fs.uses_discard = true;
}
}
}