From 1e00748a5383b71635bd157083bb49fe2b5728f1 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 12 Apr 2023 20:12:26 +0100 Subject: [PATCH] nir/fold_16bit_tex_image: skip tex instructions with backend1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be used for RADV/ACO in the future, and I don't want to and don't have to deal with 16-bit. Signed-off-by: Rhys Perry Reviewed-by: Marek Olšák Reviewed-by: Georg Lehmann Part-of: --- src/compiler/nir/nir_lower_mediump.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_lower_mediump.c b/src/compiler/nir/nir_lower_mediump.c index e97eb576146..168698c9f7d 100644 --- a/src/compiler/nir/nir_lower_mediump.c +++ b/src/compiler/nir/nir_lower_mediump.c @@ -946,6 +946,9 @@ fold_16bit_tex_srcs(nir_builder *b, nir_tex_instr *tex, if (!(options->sampler_dims & BITFIELD_BIT(tex->sampler_dim))) return false; + if (nir_tex_instr_src_index(tex, nir_tex_src_backend1) >= 0) + return false; + unsigned fold_srcs = 0; for (unsigned i = 0; i < tex->num_srcs; i++) { /* Filter out sources that should be ignored. */