mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
llvmpipe/fs: use explicit api in viewport code.
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Mihai Preda <mhpreda@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18876>
This commit is contained in:
parent
38907a40ab
commit
3137f4fad1
1 changed files with 3 additions and 2 deletions
|
|
@ -332,12 +332,13 @@ lp_llvm_viewport(LLVMTypeRef context_type,
|
|||
LLVMValueRef res;
|
||||
struct lp_type viewport_type =
|
||||
lp_type_float_vec(32, 32 * LP_JIT_VIEWPORT_NUM_FIELDS);
|
||||
LLVMTypeRef vtype = lp_build_vec_type(gallivm, viewport_type);
|
||||
|
||||
ptr = lp_jit_context_viewports(gallivm, context_type, context_ptr);
|
||||
ptr = LLVMBuildPointerCast(builder, ptr,
|
||||
LLVMPointerType(lp_build_vec_type(gallivm, viewport_type), 0), "");
|
||||
LLVMPointerType(vtype, 0), "");
|
||||
|
||||
res = lp_build_pointer_get(builder, ptr, viewport_index);
|
||||
res = lp_build_pointer_get2(builder, vtype, ptr, viewport_index);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue