From 35a531fcd4190d1a47d037f7747777be9e52cd83 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 5 Nov 2022 00:37:52 -0400 Subject: [PATCH] agx: Don't assert on texop twice This is already asserted for lod modes. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 70b2294d822..1bfcceb3d66 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1101,17 +1101,6 @@ agx_lod_mode_for_nir(nir_texop op) static void agx_emit_tex(agx_builder *b, nir_tex_instr *instr) { - switch (instr->op) { - case nir_texop_tex: - case nir_texop_txf: - case nir_texop_txl: - case nir_texop_txb: - case nir_texop_txd: - break; - default: - unreachable("Unhandled texture op"); - } - agx_index coords = agx_null(), texture = agx_immediate(instr->texture_index), sampler = agx_immediate(instr->sampler_index),