mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-12-02 12:46:30 +00:00
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:
parent
f53e1823c2
commit
1e4c6e059e
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user