gallivm: add lp_build_struct_get() variants that take the LLVM type
authorMihai Preda <mhpreda@gmail.com>
Tue, 12 Jul 2022 20:21:49 +0000 (23:21 +0300)
committerMarge Bot <emma+marge@anholt.net>
Sat, 23 Jul 2022 17:34:08 +0000 (17:34 +0000)
commitf0fda08739e46dfcb552d4510c387130ee14874d
treec853fc9163b5fe79667bfb252495bea289113a81
parent8c4aef2abb9170c1f5590a7921383345b4626b1d
gallivm: add lp_build_struct_get() variants that take the LLVM type

This is needed for LLVM-15 opaque pointers.
The new variants taking the type are named with the suffix "2", using
the same naming pattern LLVM (e.g. LLVMBuildGEP2 vs. LLVMBuildGEP).

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17650>
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h
src/gallium/auxiliary/gallivm/lp_bld_struct.c
src/gallium/auxiliary/gallivm/lp_bld_struct.h