gallium/draw: fix LLVM opaque pointer warnings in draw_gs_llvm_epilogue()

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18720>
This commit is contained in:
Mihai Preda 2022-09-21 12:59:37 +03:00 committed by Marge Bot
parent 6ad8b95f4d
commit a9d37f8bc9

View file

@ -1868,8 +1868,8 @@ draw_gs_llvm_epilogue(const struct lp_build_gs_iface *gs_base,
draw_gs_jit_emitted_prims(variant, variant->context_ptr);
LLVMValueRef stream_val = lp_build_const_int32(gallivm, stream);
emitted_verts_ptr = LLVMBuildGEP(builder, emitted_verts_ptr, &stream_val, 1, "");
emitted_prims_ptr = LLVMBuildGEP(builder, emitted_prims_ptr, &stream_val, 1, "");
emitted_verts_ptr = LLVMBuildGEP2(builder, LLVMTypeOf(total_emitted_vertices_vec), emitted_verts_ptr, &stream_val, 1, "");
emitted_prims_ptr = LLVMBuildGEP2(builder, LLVMTypeOf(emitted_prims_vec), emitted_prims_ptr, &stream_val, 1, "");
LLVMBuildStore(builder, total_emitted_vertices_vec, emitted_verts_ptr);
LLVMBuildStore(builder, emitted_prims_vec, emitted_prims_ptr);