mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
nir/fold_16bit_tex_image: skip tex instructions with backend1
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 <pendingchaos02@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22636>
This commit is contained in:
parent
12d5a2aa97
commit
1e00748a53
1 changed files with 3 additions and 0 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue