mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
nir/lower_tex: copy missing fields when creating copy of tex instruction
This is missing both texture and sampler indices. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23616>
This commit is contained in:
parent
3208844539
commit
65353814a3
1 changed files with 2 additions and 0 deletions
|
|
@ -1127,6 +1127,8 @@ lower_tg4_offsets(nir_builder *b, nir_tex_instr *tex)
|
|||
tex_copy->is_gather_implicit_lod = tex->is_gather_implicit_lod;
|
||||
tex_copy->component = tex->component;
|
||||
tex_copy->dest_type = tex->dest_type;
|
||||
tex_copy->texture_index = tex->texture_index;
|
||||
tex_copy->sampler_index = tex->sampler_index;
|
||||
|
||||
for (unsigned j = 0; j < tex->num_srcs; ++j) {
|
||||
nir_src_copy(&tex_copy->src[j].src, &tex->src[j].src, &tex_copy->instr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue