X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fllvmpipe%2Flp_bld_const.h;h=cb8e1c7b006da3ce9e887b10b391dc1f7504ddba;hb=a087eb590d780cb82b49464e05ffc85123adce7e;hp=ed6b185fceb4586bbcc2bcdd27492ee7785eabc5;hpb=138428badea350a20f5afc652a4fa1850e1ec653;p=mesa.git diff --git a/src/gallium/drivers/llvmpipe/lp_bld_const.h b/src/gallium/drivers/llvmpipe/lp_bld_const.h index ed6b185fceb..cb8e1c7b006 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_const.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_const.h @@ -42,48 +42,67 @@ #include -union lp_type type; +struct lp_type; unsigned -lp_const_shift(union lp_type type); +lp_mantissa(struct lp_type type); + + +unsigned +lp_const_shift(struct lp_type type); + + +unsigned +lp_const_offset(struct lp_type type); + + +double +lp_const_scale(struct lp_type type); + +double +lp_const_min(struct lp_type type); + + +double +lp_const_max(struct lp_type type); double -lp_const_scale(union lp_type type); +lp_const_eps(struct lp_type type); LLVMValueRef -lp_build_undef(union lp_type type); +lp_build_undef(struct lp_type type); LLVMValueRef -lp_build_zero(union lp_type type); +lp_build_zero(struct lp_type type); LLVMValueRef -lp_build_one(union lp_type type); +lp_build_one(struct lp_type type); LLVMValueRef -lp_build_const_uni(union lp_type type, - double val); +lp_build_const_scalar(struct lp_type type, + double val); LLVMValueRef -lp_build_int_const_uni(union lp_type type, - long long val); +lp_build_int_const_scalar(struct lp_type type, + long long val); LLVMValueRef -lp_build_const_aos(union lp_type type, +lp_build_const_aos(struct lp_type type, double r, double g, double b, double a, const unsigned char *swizzle); LLVMValueRef -lp_build_const_mask_aos(union lp_type type, - boolean cond[4]); +lp_build_const_mask_aos(struct lp_type type, + const boolean cond[4]); #endif /* !LP_BLD_CONST_H */