Module: Mesa Branch: main Commit: 136a26f271b5b846f3808f917267b79d0460e71a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=136a26f271b5b846f3808f917267b79d0460e71a
Author: Mihai Preda <[email protected]> Date: Wed Aug 24 14:22:07 2022 +0300 gallivm: fixes for LLVM-15 opaque pointers in lp_bld_format_soa.c Reviewed-by: Marek Olšák <[email protected]> Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18334> --- src/gallium/auxiliary/gallivm/lp_bld_format_soa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c index 6cda6036b37..784b8dc6694 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c @@ -1099,7 +1099,7 @@ lp_build_store_rgba_soa(struct gallivm_state *gallivm, struct lp_build_loop_state loop_state; LLVMValueRef store_offset = LLVMBuildAdd(gallivm->builder, offset, lp_build_const_int_vec(gallivm, type, i * 4), ""); - store_offset = LLVMBuildGEP(gallivm->builder, base_ptr, &store_offset, 1, ""); + store_offset = LLVMBuildGEP2(gallivm->builder, LLVMInt8TypeInContext(gallivm->context), base_ptr, &store_offset, 1, ""); lp_build_loop_begin(&loop_state, gallivm, lp_build_const_int32(gallivm, 0));
