From f286289c7fd1478529a90b910a84a467b559b283 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Tue, 12 Jul 2022 11:36:56 +0200 Subject: [PATCH] v3dv: remove unused lowering for nir_intrinsic_load_layer_id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This intrinsic is only produced when the compiler is instructed to handle layer id as a system value, which we don't use. Also, we have been supporting layered rendering for a while and passing all the relevant tests which would've failed if we were hitting this lowering. Reviewed-by: Alejandro PiƱeiro Part-of: --- src/broadcom/vulkan/v3dv_pipeline.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/broadcom/vulkan/v3dv_pipeline.c b/src/broadcom/vulkan/v3dv_pipeline.c index 65a4507e4db..60e45d281df 100644 --- a/src/broadcom/vulkan/v3dv_pipeline.c +++ b/src/broadcom/vulkan/v3dv_pipeline.c @@ -883,15 +883,6 @@ lower_intrinsic(nir_builder *b, nir_intrinsic_instr *instr, const struct v3dv_pipeline_layout *layout) { switch (instr->intrinsic) { - case nir_intrinsic_load_layer_id: - /* FIXME: if layered rendering gets supported, this would need a real - * lowering - */ - nir_ssa_def_rewrite_uses(&instr->dest.ssa, - nir_imm_int(b, 0)); - nir_instr_remove(&instr->instr); - return true; - case nir_intrinsic_load_push_constant: lower_load_push_constant(b, instr, pipeline); return true;