BACKPORT: mesa/st: ignore texture_index if tex_instr has deref src
texture_index is meaningless when a tex_instr has deref src.
Use var->data.binding instead.
CC: mesa-stable
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9931>
(cherry picked from commit e4ef5f043315e9f06bfb082b867dc08efe310d55)
Signed-off-by: dannywang <danny.wang@amd.corp-partner.google.com>
BUG=b:182752588
TEST=build and update arc-mesa-amd on DUT
Conflicts:
src/mesa/state_tracker/st_nir_lower_tex_src_plane.c
- Resloved in the context of this mesa-amd
Change-Id: I8979e4843fb9bdba0d92db8052a4cbdd69e1f459
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/2807201
Reviewed-by: Drew Davenport <ddavenport@chromium.org>
Commit-Queue: Drew Davenport <ddavenport@chromium.org>
Tested-by: Drew Davenport <ddavenport@chromium.org>
1 file changed