From ab9650d5aa0f1873674da57dad34db1d9c49ff0f Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 27 Jan 2021 11:21:48 -0500 Subject: [PATCH] pan/bi: Remove redundant TEXC opcode check Already checked in emit_tex Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 4a5382c4363..4be42605b57 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -1787,18 +1787,6 @@ bi_emit_texc(bi_builder *b, nir_tex_instr *instr) /* TODO: support more with other encodings */ assert(instr->sampler_index < 16); - /* TODO: support more ops */ - switch (instr->op) { - case nir_texop_tex: - case nir_texop_txl: - case nir_texop_txb: - case nir_texop_txf: - case nir_texop_txf_ms: - break; - default: - unreachable("Unsupported texture op"); - } - struct bifrost_texture_operation desc = { .sampler_index_or_mode = instr->sampler_index, .index = instr->texture_index,