ac/llvm: Remove "structurized" argument and instead check vindex.
authorTimur Kristóf <timur.kristof@gmail.com>
Sat, 11 Feb 2023 00:32:50 +0000 (01:32 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 16 Feb 2023 15:29:37 +0000 (15:29 +0000)
commitb5b0ded4c16c591aac9249e0a85f12f915143a8e
tree79b7b543f04c5a42e97afdace67ef42a0a80ec57
parent881c52ba19a55b1658e425ae77750004cca920b6
ac/llvm: Remove "structurized" argument and instead check vindex.

Change ac_build_buffer_load_common and ac_build_tbuffer_load so
the use structurized load when the vindex argument is not NULL.
Adjust callers to match the new behaviour.

This fixes the load_buffer_amd intrinsic with index source.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21358>
src/amd/llvm/ac_llvm_build.c