/external/mesa3d/src/util/ |
D | half_float.h | 59 _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/ |
D | etnaviv_blend.c | 183 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()
|
D | etnaviv_zsa.c | 96 extra_reference = _mesa_float_to_half(SATURATE(so->alpha.ref_value)); in etna_zsa_state_create()
|
/external/mesa3d/src/mesa/main/ |
D | format_utils.h | 73 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()
|
D | format_utils.c | 1034 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()
|
D | texcompress_bptc_tmp.h | 1655 half = _mesa_float_to_half(value); in get_endpoint_value() 1672 half = _mesa_float_to_half(value); in get_endpoint_value()
|
D | mipmap.c | 160 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/ |
D | vertexshader9.h | 115 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/ |
D | u_half_test.c | 22 rh = _mesa_float_to_half(f.f); in test()
|
D | translate_test.c | 167 half_buffer[i] = _mesa_float_to_half((float) rand_double()); in main()
|
/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_state_validate.c | 185 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/ |
D | lp_bld_const.c | 260 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/ |
D | bi_test_pack.c | 175 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/ |
D | negative_equal_tests.cpp | 321 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/ |
D | freedreno_texture.c | 170 _mesa_float_to_half(sampler->border_color.f[j]); in fd_setup_border_colors()
|
/external/mesa3d/src/gallium/drivers/v3d/ |
D | v3dx_emit.c | 104 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()
|
D | v3dx_state.c | 55 _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()
|
/external/mesa3d/src/intel/compiler/ |
D | brw_fs_combine_constants.cpp | 237 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/src/gallium/drivers/freedreno/a6xx/ |
D | fd6_blitter.c | 731 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()
|
D | fd6_emit.c | 186 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/prebuilt-intermediates/main/ |
D | format_pack.c | 6614 _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/ |
D | r300_state.c | 623 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/ |
D | ir_constant_expression.cpp | 407 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()
|
D | lower_precision.cpp | 752 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/ |
D | fd5_emit.c | 279 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()
|