diff --git a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c index 8c193e2115b..32109f0bc57 100644 --- a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c +++ b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c @@ -297,7 +297,8 @@ lower_intrinsic(nir_intrinsic_instr *instr, instr->intrinsic == nir_intrinsic_image_deref_atomic_exchange || instr->intrinsic == nir_intrinsic_image_deref_atomic_comp_swap || instr->intrinsic == nir_intrinsic_image_deref_atomic_fadd || - instr->intrinsic == nir_intrinsic_image_deref_size) { + instr->intrinsic == nir_intrinsic_image_deref_size || + instr->intrinsic == nir_intrinsic_image_deref_samples) { b->cursor = nir_before_instr(&instr->instr); nir_deref_instr *deref = @@ -312,6 +313,9 @@ lower_intrinsic(nir_intrinsic_instr *instr, nir_src_for_ssa(&deref->dest.ssa)); return true; } + if (instr->intrinsic == nir_intrinsic_image_deref_order || + instr->intrinsic == nir_intrinsic_image_deref_format) + unreachable("how did you even manage this?"); return false; }