nir/fold_16bit_sampler_conversions: skip sparse residency tex instructions

The residency return value mismatches between NIR and Radeon.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13592>
This commit is contained in:
Daniel Schürmann 2021-11-02 14:29:47 +01:00 committed by Marge Bot
parent f53e1823c2
commit 1e4c6e059e

View File

@ -437,6 +437,10 @@ nir_fold_16bit_sampler_conversions(nir_shader *nir,
nir_instr *src;
nir_alu_instr *src_alu;
/* Skip sparse residency */
if (tex->is_sparse)
continue;
/* Skip because AMD doesn't support 16-bit types with these. */
if ((tex->op == nir_texop_txs ||
tex->op == nir_texop_query_levels) ||