mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
llvmpipe: added lp_build_int32_vec4_type()
This commit is contained in:
parent
2297bc9233
commit
e288796c92
2 changed files with 25 additions and 0 deletions
|
|
@ -157,6 +157,27 @@ lp_build_int_vec_type(struct lp_type type)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Build int32[4] vector type
|
||||
*/
|
||||
LLVMTypeRef
|
||||
lp_build_int32_vec4_type()
|
||||
{
|
||||
struct lp_type t;
|
||||
LLVMTypeRef type;
|
||||
|
||||
memset(&t, 0, sizeof(t));
|
||||
t.floating = FALSE; /* floating point values */
|
||||
t.sign = TRUE; /* values are signed */
|
||||
t.norm = FALSE; /* values are not limited to [0,1] or [-1,1] */
|
||||
t.width = 32; /* 32-bit int */
|
||||
t.length = 4; /* 4 elements per vector */
|
||||
|
||||
type = lp_build_int_elem_type(t);
|
||||
return LLVMVectorType(type, t.length);
|
||||
}
|
||||
|
||||
|
||||
struct lp_type
|
||||
lp_int_type(struct lp_type type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -162,6 +162,10 @@ LLVMTypeRef
|
|||
lp_build_int_vec_type(struct lp_type type);
|
||||
|
||||
|
||||
LLVMTypeRef
|
||||
lp_build_int32_vec4_type();
|
||||
|
||||
|
||||
struct lp_type
|
||||
lp_int_type(struct lp_type type);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue