mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
gallium/draw: fix LLVM opaque pointer warnings in draw_gs_llvm_end_primitive()
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:
parent
4a6e34ec3d
commit
6ad8b95f4d
1 changed files with 5 additions and 3 deletions
|
|
@ -1843,9 +1843,11 @@ draw_gs_llvm_end_primitive(const struct lp_build_gs_iface *gs_base,
|
|||
lp_build_if(&ifthen, gallivm, this_cond);
|
||||
prims_emitted = LLVMBuildMul(gallivm->builder, prims_emitted, lp_build_const_int32(gallivm, variant->shader->base.num_vertex_streams), "");
|
||||
prims_emitted = LLVMBuildAdd(gallivm->builder, prims_emitted, lp_build_const_int32(gallivm, stream), "");
|
||||
store_ptr = LLVMBuildGEP(builder, prim_lengts_ptr, &prims_emitted, 1, "");
|
||||
store_ptr = LLVMBuildLoad(builder, store_ptr, "");
|
||||
store_ptr = LLVMBuildGEP(builder, store_ptr, &ind, 1, "");
|
||||
LLVMTypeRef int_type = LLVMInt32TypeInContext(gallivm->context);
|
||||
LLVMTypeRef prim_lengths_type = LLVMPointerType(int_type, 0);
|
||||
store_ptr = LLVMBuildGEP2(builder, prim_lengths_type, prim_lengts_ptr, &prims_emitted, 1, "");
|
||||
store_ptr = LLVMBuildLoad2(builder, prim_lengths_type, store_ptr, "");
|
||||
store_ptr = LLVMBuildGEP2(builder, int_type, store_ptr, &ind, 1, "");
|
||||
LLVMBuildStore(builder, num_vertices, store_ptr);
|
||||
lp_build_endif(&ifthen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue