From 013a6bfc70faa13cf69fe5b2f0fdfb59d4e52615 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 12 Nov 2025 10:08:51 -0500 Subject: [PATCH] pan/bi: clean up NIR txf_ms(BUFFER) doesn't exist. while in the area. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/compiler/bifrost_compile.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index 853f8fb8d83..40f3a71c93f 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -6218,14 +6218,7 @@ void bifrost_lower_texture_nir(nir_shader *nir, unsigned gpu_id) static bool lower_texel_buffer_fetch(nir_builder *b, nir_tex_instr *tex, void *data) { - switch (tex->op) { - case nir_texop_txf: - case nir_texop_txf_ms: - break; - default: - return false; - } - if (tex->sampler_dim != GLSL_SAMPLER_DIM_BUF) + if (tex->op != nir_texop_txf || tex->sampler_dim != GLSL_SAMPLER_DIM_BUF) return false; b->cursor = nir_before_instr(&tex->instr);