Searched refs:f32_bld (Results 1 – 3 of 3) sorted by relevance
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_srgb.c | 100 struct lp_build_context f32_bld; in lp_build_srgb_to_linear() local 112 lp_build_context_init(&f32_bld, gallivm, f32_type); in lp_build_srgb_to_linear() 129 srcf = lp_build_int_to_float(&f32_bld, src); in lp_build_srgb_to_linear() 134 srcf = lp_build_mul(&f32_bld, srcf, rescale_const); in lp_build_srgb_to_linear() 137 part_lin = lp_build_mul(&f32_bld, srcf, lin_const); in lp_build_srgb_to_linear() 139 part_pow = lp_build_polynomial(&f32_bld, srcf, coeffs, 4); in lp_build_srgb_to_linear() 143 return lp_build_select(&f32_bld, is_linear, part_lin, part_pow); in lp_build_srgb_to_linear() 166 struct lp_build_context f32_bld; in lp_build_linear_to_srgb() local 169 lp_build_context_init(&f32_bld, gallivm, src_type); in lp_build_linear_to_srgb() 171 src = lp_build_clamp(&f32_bld, src, f32_bld.zero, f32_bld.one); in lp_build_linear_to_srgb() [all …]
|
D | lp_bld_format_float.c | 86 struct lp_build_context f32_bld, i32_bld; in lp_build_float_to_smallfloat() local 92 lp_build_context_init(&f32_bld, gallivm, f32_type); in lp_build_float_to_smallfloat() 106 rescale_src = lp_build_max(&f32_bld, zero, src); in lp_build_float_to_smallfloat() 123 rescale_src = LLVMBuildBitCast(builder, rescale_src, f32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 126 rescale_src = lp_build_abs(&f32_bld, src); in lp_build_float_to_smallfloat() 132 magic = LLVMBuildBitCast(builder, magic, f32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 133 normal = lp_build_mul(&f32_bld, rescale_src, magic); in lp_build_float_to_smallfloat() 139 small_max = LLVMBuildBitCast(builder, small_max, f32_bld.vec_type, ""); in lp_build_float_to_smallfloat() 140 normal = lp_build_min(&f32_bld, normal, small_max); in lp_build_float_to_smallfloat() 154 LLVMValueRef src_abs = lp_build_abs(&f32_bld, src); in lp_build_float_to_smallfloat() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_fs.c | 251 struct lp_build_context f32_bld; in lp_build_depth_clamp() local 254 lp_build_context_init(&f32_bld, gallivm, type); in lp_build_depth_clamp() 275 min_depth = lp_build_broadcast_scalar(&f32_bld, min_depth); in lp_build_depth_clamp() 280 max_depth = lp_build_broadcast_scalar(&f32_bld, max_depth); in lp_build_depth_clamp() 285 return lp_build_clamp(&f32_bld, z, min_depth, max_depth); in lp_build_depth_clamp() 2082 struct lp_build_context f32_bld; in generate_unswizzled_blend() local 2084 lp_build_context_init(&f32_bld, gallivm, row_type); in generate_unswizzled_blend() 2086 src[i] = lp_build_clamp_zero_one_nanzero(&f32_bld, src[i]); in generate_unswizzled_blend() 2090 src1[i] = lp_build_clamp_zero_one_nanzero(&f32_bld, src1[i]); in generate_unswizzled_blend() 2094 lp_build_context_init(&f32_bld, gallivm, blend_type); in generate_unswizzled_blend() [all …]
|