Home
last modified time | relevance | path

Searched refs:util_float_to_half (Results 1 – 19 of 19) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/nine/
Dvertexshader9.h100 key |= ((uint64_t)util_float_to_half(asfloat(context->rs[D3DRS_POINTSIZE_MIN]))) << 32; in NineVertexShader9_UpdateKey()
101 key |= ((uint64_t)util_float_to_half(asfloat(context->rs[D3DRS_POINTSIZE_MAX]))) << 48; in NineVertexShader9_UpdateKey()
/external/mesa3d/src/amd/vulkan/
Dradv_formats.c935 clear_vals[0] = util_float_to_half(value->float32[0]); in radv_format_pack_clear_color()
939 clear_vals[0] = util_float_to_half(value->float32[0]); in radv_format_pack_clear_color()
940 clear_vals[0] |= (uint32_t)util_float_to_half(value->float32[1]) << 16; in radv_format_pack_clear_color()
944 clear_vals[0] = util_float_to_half(value->float32[0]); in radv_format_pack_clear_color()
945 clear_vals[0] |= (uint32_t)util_float_to_half(value->float32[1]) << 16; in radv_format_pack_clear_color()
946 clear_vals[1] = util_float_to_half(value->float32[2]); in radv_format_pack_clear_color()
947 clear_vals[1] |= (uint32_t)util_float_to_half(value->float32[3]) << 16; in radv_format_pack_clear_color()
/external/mesa3d/src/gallium/tests/unit/
Du_half_test.c21 rh = util_float_to_half(f.f); in main()
Dtranslate_test.c167 half_buffer[i] = util_float_to_half((float) rand_double()); in main()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_state_validate.c185 PUSH_DATA (push, (util_float_to_half(rgba[0]) << 0) | in nv30_validate_blend_colour()
186 (util_float_to_half(rgba[1]) << 16)); in nv30_validate_blend_colour()
188 PUSH_DATA (push, (util_float_to_half(rgba[2]) << 0) | in nv30_validate_blend_colour()
189 (util_float_to_half(rgba[3]) << 16)); in nv30_validate_blend_colour()
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_state.c61 util_float_to_half(blend_color->color[i]); in vc5_set_blend_color()
563 util_float_to_half(cso->border_color.f[0]); in vc5_create_sampler_state()
565 util_float_to_half(cso->border_color.f[1]); in vc5_create_sampler_state()
567 util_float_to_half(cso->border_color.f[2]); in vc5_create_sampler_state()
569 util_float_to_half(cso->border_color.f[3]); in vc5_create_sampler_state()
Dvc5_emit.c102 return util_float_to_half(0.0); in swizzled_border_color()
104 return util_float_to_half(1.0); in swizzled_border_color()
106 return util_float_to_half(sampler->border_color.f[swiz]); in swizzled_border_color()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_half.h47 util_float_to_half(float f) in util_float_to_half() function
/external/mesa3d/src/gallium/auxiliary/util/
Du_half.h47 util_float_to_half(float f) in util_float_to_half() function
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_const.c260 elems[0] = LLVMConstInt(elem_type, util_float_to_half(1.0f), 0); in lp_build_one()
307 elem = LLVMConstInt(elem_type, util_float_to_half((float)val), 0); in lp_build_const_elem()
Dlp_bld_conv.c193 …eRef func = lp_build_const_int_pointer(gallivm, func_to_pointer((func_pointer)util_float_to_half)); in lp_build_float_to_half()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c160 util_float_to_half(sampler->border_color.f[j]); in fd_setup_border_colors()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_state.c629 OUT_CB(util_float_to_half(c.color[2]) | in r300_set_blend_color()
630 (util_float_to_half(c.color[3]) << 16)); in r300_set_blend_color()
631 OUT_CB(util_float_to_half(c.color[0]) | in r300_set_blend_color()
632 (util_float_to_half(c.color[1]) << 16)); in r300_set_blend_color()
762 alpha_value_fp16 = util_float_to_half(state->alpha.ref_value); in r300_create_dsa_state()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Da3xx.xml.h1214 …return ((util_float_to_half(val)) << A3XX_RB_ALPHA_REF_FLOAT__SHIFT) & A3XX_RB_ALPHA_REF_FLOAT__MA… in A3XX_RB_ALPHA_REF_FLOAT()
1329 …return ((util_float_to_half(val)) << A3XX_RB_BLEND_RED_FLOAT__SHIFT) & A3XX_RB_BLEND_RED_FLOAT__MA… in A3XX_RB_BLEND_RED_FLOAT()
1343 …return ((util_float_to_half(val)) << A3XX_RB_BLEND_GREEN_FLOAT__SHIFT) & A3XX_RB_BLEND_GREEN_FLOAT… in A3XX_RB_BLEND_GREEN_FLOAT()
1357 …return ((util_float_to_half(val)) << A3XX_RB_BLEND_BLUE_FLOAT__SHIFT) & A3XX_RB_BLEND_BLUE_FLOAT__… in A3XX_RB_BLEND_BLUE_FLOAT()
1371 …return ((util_float_to_half(val)) << A3XX_RB_BLEND_ALPHA_FLOAT__SHIFT) & A3XX_RB_BLEND_ALPHA_FLOAT… in A3XX_RB_BLEND_ALPHA_FLOAT()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Da5xx.xml.h3181 …return ((util_float_to_half(val)) << A5XX_RB_BLEND_RED_FLOAT__SHIFT) & A5XX_RB_BLEND_RED_FLOAT__MA… in A5XX_RB_BLEND_RED_FLOAT()
3209 …return ((util_float_to_half(val)) << A5XX_RB_BLEND_GREEN_FLOAT__SHIFT) & A5XX_RB_BLEND_GREEN_FLOAT… in A5XX_RB_BLEND_GREEN_FLOAT()
3237 …return ((util_float_to_half(val)) << A5XX_RB_BLEND_BLUE_FLOAT__SHIFT) & A5XX_RB_BLEND_BLUE_FLOAT__… in A5XX_RB_BLEND_BLUE_FLOAT()
3265 …return ((util_float_to_half(val)) << A5XX_RB_BLEND_ALPHA_FLOAT__SHIFT) & A5XX_RB_BLEND_ALPHA_FLOAT… in A5XX_RB_BLEND_ALPHA_FLOAT()
Dfd5_emit.c233 e->fp16[c] = util_float_to_half(f); in setup_border_colors()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Da4xx.xml.h1087 …return ((util_float_to_half(val)) << A4XX_RB_BLEND_RED_FLOAT__SHIFT) & A4XX_RB_BLEND_RED_FLOAT__MA… in A4XX_RB_BLEND_RED_FLOAT()
1115 …return ((util_float_to_half(val)) << A4XX_RB_BLEND_GREEN_FLOAT__SHIFT) & A4XX_RB_BLEND_GREEN_FLOAT… in A4XX_RB_BLEND_GREEN_FLOAT()
1143 …return ((util_float_to_half(val)) << A4XX_RB_BLEND_BLUE_FLOAT__SHIFT) & A4XX_RB_BLEND_BLUE_FLOAT__… in A4XX_RB_BLEND_BLUE_FLOAT()
1171 …return ((util_float_to_half(val)) << A4XX_RB_BLEND_ALPHA_FLOAT__SHIFT) & A4XX_RB_BLEND_ALPHA_FLOAT… in A4XX_RB_BLEND_ALPHA_FLOAT()
/external/mesa3d/src/gallium/auxiliary/translate/
Dtranslate_generic.c114 #define TO_16_FLOAT(x) util_float_to_half(x)
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_exec.c3269 dst.u[chan] = util_float_to_half(arg[0].f[chan]) | in exec_pk2h()
3270 (util_float_to_half(arg[1].f[chan]) << 16); in exec_pk2h()