Home
last modified time | relevance | path

Searched refs:_mesa_float_to_half (Results 1 – 25 of 42) sorted by relevance

12

/external/mesa3d/src/util/
Dhalf_float.h59 _mesa_float_to_half(float val) in _mesa_float_to_half() function
108 return _mesa_float_to_half(val); in _mesa_float_to_float16_rtne()
124 float16_t(float f) : bits(_mesa_float_to_half(f)) {} in float16_t()
125 float16_t(double d) : bits(_mesa_float_to_half(d)) {} in float16_t()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_blend.c183 VIVS_PE_ALPHA_COLOR_EXT0_B(_mesa_float_to_half(cs->color[rb_swap ? 2 : 0])) | in etna_update_blend_color()
184 VIVS_PE_ALPHA_COLOR_EXT0_G(_mesa_float_to_half(cs->color[1])); in etna_update_blend_color()
186 VIVS_PE_ALPHA_COLOR_EXT1_R(_mesa_float_to_half(cs->color[rb_swap ? 0 : 2])) | in etna_update_blend_color()
187 VIVS_PE_ALPHA_COLOR_EXT1_A(_mesa_float_to_half(cs->color[3])); in etna_update_blend_color()
Detnaviv_zsa.c96 extra_reference = _mesa_float_to_half(SATURATE(so->alpha.ref_value)); in etna_zsa_state_create()
/external/mesa3d/src/mesa/main/
Dformat_utils.h73 return _mesa_float_to_half(_mesa_unorm_to_float(x, src_bits)); in _mesa_unorm_to_half()
79 return _mesa_float_to_half(_mesa_snorm_to_float(x, src_bits)); in _mesa_snorm_to_half()
211 return _mesa_unsigned_to_unsigned(_mesa_float_to_half(src), dst_bits); in _mesa_half_to_unsigned()
Dformat_utils.c1034 const uint16_t one = _mesa_float_to_half(1.0f); in convert_half_float()
1038 SWIZZLE_CONVERT(uint16_t, float, _mesa_float_to_half(src)); in convert_half_float()
1047 SWIZZLE_CONVERT(uint16_t, uint8_t, _mesa_float_to_half(src)); in convert_half_float()
1054 SWIZZLE_CONVERT(uint16_t, int8_t, _mesa_float_to_half(src)); in convert_half_float()
1061 SWIZZLE_CONVERT(uint16_t, uint16_t, _mesa_float_to_half(src)); in convert_half_float()
1068 SWIZZLE_CONVERT(uint16_t, int16_t, _mesa_float_to_half(src)); in convert_half_float()
1075 SWIZZLE_CONVERT(uint16_t, uint32_t, _mesa_float_to_half(src)); in convert_half_float()
1082 SWIZZLE_CONVERT(uint16_t, int32_t, _mesa_float_to_half(src)); in convert_half_float()
Dtexcompress_bptc_tmp.h1655 half = _mesa_float_to_half(value); in get_endpoint_value()
1672 half = _mesa_float_to_half(value); in get_endpoint_value()
Dmipmap.c160 dst[i][e] = _mesa_float_to_half((aj + ak + bj + bk + cj + ck + dj + dk) \
446 dst[i][comp] = _mesa_float_to_half((aj + ak + bj + bk) * 0.25F); in do_row()
463 dst[i][comp] = _mesa_float_to_half((aj + ak + bj + bk) * 0.25F); in do_row()
480 dst[i][comp] = _mesa_float_to_half((aj + ak + bj + bk) * 0.25F); in do_row()
496 dst[i] = _mesa_float_to_half((aj + ak + bj + bk) * 0.25F); in do_row()
/external/mesa3d/src/gallium/frontends/nine/
Dvertexshader9.h115 key |= ((uint64_t)_mesa_float_to_half(asfloat(context->rs[D3DRS_POINTSIZE_MIN]))) << 32; in NineVertexShader9_UpdateKey()
116 key |= ((uint64_t)_mesa_float_to_half(asfloat(context->rs[D3DRS_POINTSIZE_MAX]))) << 48; in NineVertexShader9_UpdateKey()
/external/mesa3d/src/gallium/tests/unit/
Du_half_test.c22 rh = _mesa_float_to_half(f.f); in test()
Dtranslate_test.c167 half_buffer[i] = _mesa_float_to_half((float) rand_double()); in main()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_state_validate.c185 PUSH_DATA (push, (_mesa_float_to_half(rgba[0]) << 0) | in nv30_validate_blend_colour()
186 (_mesa_float_to_half(rgba[1]) << 16)); in nv30_validate_blend_colour()
188 PUSH_DATA (push, (_mesa_float_to_half(rgba[2]) << 0) | in nv30_validate_blend_colour()
189 (_mesa_float_to_half(rgba[3]) << 16)); in nv30_validate_blend_colour()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_const.c260 elems[0] = LLVMConstInt(elem_type, _mesa_float_to_half(1.0f), 0); in lp_build_one()
307 elem = LLVMConstInt(elem_type, _mesa_float_to_half((float)val), 0); in lp_build_const_elem()
/external/mesa3d/src/panfrost/bifrost/test/
Dbi_test_pack.c175 mem[i] = _mesa_float_to_half(((float) (rand() & 255) - 127) / 16.0); in bit_generate_half8()
609 … uint32_t special16[4] = { _mesa_float_to_half(special[0]) | (_mesa_float_to_half(0.2) << 16) }; in bit_packing()
/external/mesa3d/src/compiler/nir/tests/
Dnegative_equal_tests.cpp321 c[i].u16 = _mesa_float_to_half(float(i + first)); in count_sequence()
379 dst[i].u16 = _mesa_float_to_half(-_mesa_half_to_float(src[i].u16)); in negate()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c170 _mesa_float_to_half(sampler->border_color.f[j]); in fd_setup_border_colors()
/external/mesa3d/src/gallium/drivers/v3d/
Dv3dx_state.c55 _mesa_float_to_half(blend_color->color[i]); in v3d_set_blend_color()
694 _mesa_float_to_half(border.f[0]); in v3d_upload_sampler_state_variant()
696 _mesa_float_to_half(border.f[1]); in v3d_upload_sampler_state_variant()
698 _mesa_float_to_half(border.f[2]); in v3d_upload_sampler_state_variant()
700 _mesa_float_to_half(border.f[3]); in v3d_upload_sampler_state_variant()
Dv3dx_emit.c104 return _mesa_float_to_half(0.0); in swizzled_border_color()
106 return _mesa_float_to_half(1.0); in swizzled_border_color()
108 return _mesa_float_to_half(sampler->border_color.f[swiz]); in swizzled_border_color()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_blitter.c731 OUT_RING(ring, _mesa_float_to_half(color->f[0])); in emit_clear_color()
732 OUT_RING(ring, _mesa_float_to_half(color->f[1])); in emit_clear_color()
733 OUT_RING(ring, _mesa_float_to_half(color->f[2])); in emit_clear_color()
734 OUT_RING(ring, _mesa_float_to_half(color->f[3])); in emit_clear_color()
Dfd6_emit.c186 e->fp16[c] = _mesa_float_to_half(f); in setup_border_colors()
187 e->srgb[c] = _mesa_float_to_half(f_u); in setup_border_colors()
/external/mesa3d/src/intel/compiler/
Dbrw_fs_combine_constants.cpp237 val = _mesa_float_to_half(fabsf(_mesa_half_to_float(val))); in get_constant_value()
327 uint16_t h = _mesa_float_to_half(f); in representable_as_hf()
/external/mesa3d/prebuilt-intermediates/main/
Dformat_pack.c6614 _mesa_float_to_half(src[3]); in pack_float_a_float16()
6638 _mesa_float_to_half(src[0]); in pack_float_l_float16()
6662 _mesa_float_to_half(src[0]); in pack_float_la_float16()
6666 _mesa_float_to_half(src[3]); in pack_float_la_float16()
6696 _mesa_float_to_half(src[0]); in pack_float_i_float16()
6720 _mesa_float_to_half(src[0]); in pack_float_r_float16()
6744 _mesa_float_to_half(src[0]); in pack_float_rg_float16()
6748 _mesa_float_to_half(src[1]); in pack_float_rg_float16()
6778 _mesa_float_to_half(src[0]); in pack_float_rgb_float16()
6782 _mesa_float_to_half(src[1]); in pack_float_rgb_float16()
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_state.c623 OUT_CB(_mesa_float_to_half(c.color[2]) | in r300_set_blend_color()
624 (_mesa_float_to_half(c.color[3]) << 16)); in r300_set_blend_color()
625 OUT_CB(_mesa_float_to_half(c.color[0]) | in r300_set_blend_color()
626 (_mesa_float_to_half(c.color[1]) << 16)); in r300_set_blend_color()
756 alpha_value_fp16 = _mesa_float_to_half(state->alpha.ref_value); in r300_create_dsa_state()
/external/mesa3d/src/compiler/glsl/
Dir_constant_expression.cpp407 return _mesa_float_to_half(x); in pack_half_1x16()
843 f.f16[i] = _mesa_float_to_half(data.f[i]); in constant_expression_value()
Dlower_precision.cpp752 value.f16[i] = _mesa_float_to_half(const_ir->value.f[i]); in handle_rvalue()
1008 value.f16[i] = _mesa_float_to_half(ir->value.f[i]); in lower_constant()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_emit.c279 e->fp16[c] = _mesa_float_to_half(f); in setup_border_colors()
280 e->srgb[c] = _mesa_float_to_half(f_u); in setup_border_colors()

12