mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
llvmpipe: Convenience function to obtain the integer type with same bitdepth of an arbitrary type.
This commit is contained in:
parent
fa0f4b35be
commit
0c2ea24338
2 changed files with 15 additions and 0 deletions
|
|
@ -157,6 +157,17 @@ lp_build_int_vec_type(union lp_type type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
union lp_type
|
||||||
|
lp_int_type(union lp_type type)
|
||||||
|
{
|
||||||
|
union lp_type int_type;
|
||||||
|
int_type.value = 0;
|
||||||
|
int_type.width = type.width;
|
||||||
|
int_type.length = type.length;
|
||||||
|
return int_type;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
lp_build_context_init(struct lp_build_context *bld,
|
lp_build_context_init(struct lp_build_context *bld,
|
||||||
LLVMBuilderRef builder,
|
LLVMBuilderRef builder,
|
||||||
|
|
|
||||||
|
|
@ -165,6 +165,10 @@ LLVMTypeRef
|
||||||
lp_build_int_vec_type(union lp_type type);
|
lp_build_int_vec_type(union lp_type type);
|
||||||
|
|
||||||
|
|
||||||
|
union lp_type
|
||||||
|
lp_int_type(union lp_type type);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
lp_build_context_init(struct lp_build_context *bld,
|
lp_build_context_init(struct lp_build_context *bld,
|
||||||
LLVMBuilderRef builder,
|
LLVMBuilderRef builder,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue