Searched refs:f32_bld (Results 1 – 3 of 3) sorted by relevance
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_srgb.c | 101 struct lp_build_context f32_bld; in lp_build_srgb_to_linear() local 113 lp_build_context_init(&f32_bld, gallivm, f32_type); in lp_build_srgb_to_linear() 130 srcf = lp_build_int_to_float(&f32_bld, src); in lp_build_srgb_to_linear() 135 srcf = lp_build_mul(&f32_bld, srcf, rescale_const); in lp_build_srgb_to_linear() 138 part_lin = lp_build_mul(&f32_bld, srcf, lin_const); in lp_build_srgb_to_linear() 140 part_pow = lp_build_polynomial(&f32_bld, srcf, coeffs, 4); in lp_build_srgb_to_linear() 144 return lp_build_select(&f32_bld, is_linear, part_lin, part_pow); in lp_build_srgb_to_linear() 167 struct lp_build_context f32_bld; in lp_build_linear_to_srgb() local 170 lp_build_context_init(&f32_bld, gallivm, src_type); in lp_build_linear_to_srgb() 172 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 | 357 struct lp_build_context f32_bld; in lp_build_depth_clamp() local 360 lp_build_context_init(&f32_bld, gallivm, type); in lp_build_depth_clamp() 381 min_depth = lp_build_broadcast_scalar(&f32_bld, min_depth); in lp_build_depth_clamp() 386 max_depth = lp_build_broadcast_scalar(&f32_bld, max_depth); in lp_build_depth_clamp() 391 return lp_build_clamp(&f32_bld, z, min_depth, max_depth); in lp_build_depth_clamp() 2622 struct lp_build_context f32_bld; in generate_unswizzled_blend() local 2624 lp_build_context_init(&f32_bld, gallivm, row_type); in generate_unswizzled_blend() 2626 src[i] = lp_build_clamp_zero_one_nanzero(&f32_bld, src[i]); in generate_unswizzled_blend() 2630 src1[i] = lp_build_clamp_zero_one_nanzero(&f32_bld, src1[i]); in generate_unswizzled_blend() 2634 lp_build_context_init(&f32_bld, gallivm, blend_type); in generate_unswizzled_blend() [all …]
|