nir: Fix source type for fragment_fetch_amd.

Like txf_ms, these take integers not floats.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15242>
This commit is contained in:
Georg Lehmann
2022-03-04 13:32:06 +01:00
committed by Marge Bot
parent 50be692253
commit 6731460194

View File

@@ -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: