From 6731460194722d7971093939e006277659976290 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Fri, 4 Mar 2022 13:32:06 +0100 Subject: [PATCH] nir: Fix source type for fragment_fetch_amd. Like txf_ms, these take integers not floats. Signed-off-by: Georg Lehmann Reviewed-by: Rhys Perry Reviewed-by: Samuel Pitoiset Part-of: --- src/compiler/nir/nir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 5c93019450f..3f17d115855 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -3298,6 +3298,8 @@ nir_tex_instr_src_type(const nir_tex_instr *instr, unsigned src) case nir_texop_txf_ms_fb: case nir_texop_txf_ms_mcs_intel: case nir_texop_samples_identical: + case nir_texop_fragment_fetch_amd: + case nir_texop_fragment_mask_fetch_amd: return nir_type_int; default: @@ -3309,6 +3311,8 @@ nir_tex_instr_src_type(const nir_tex_instr *instr, unsigned src) case nir_texop_txs: case nir_texop_txf: case nir_texop_txf_ms: + case nir_texop_fragment_fetch_amd: + case nir_texop_fragment_mask_fetch_amd: return nir_type_int; default: