v3dv: remove unused lowering for nir_intrinsic_load_layer_id

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 <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17483>
This commit is contained in:
Iago Toral Quiroga 2022-07-12 11:36:56 +02:00 committed by Marge Bot
parent 5a4c5f46c7
commit f286289c7f
1 changed files with 0 additions and 9 deletions

View File

@ -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;