/third_party/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()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_blend.c | 185 VIVS_PE_ALPHA_COLOR_EXT0_B(_mesa_float_to_half(cs->color[rb_swap ? 2 : 0])) | in etna_update_blend_color() 186 VIVS_PE_ALPHA_COLOR_EXT0_G(_mesa_float_to_half(cs->color[1])); in etna_update_blend_color() 188 VIVS_PE_ALPHA_COLOR_EXT1_R(_mesa_float_to_half(cs->color[rb_swap ? 0 : 2])) | in etna_update_blend_color() 189 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()
|
/third_party/mesa3d/src/util/format/ |
D | format_utils.h | 60 return _mesa_float_to_half(_mesa_unorm_to_float(x, src_bits)); in _mesa_unorm_to_half() 66 return _mesa_float_to_half(_mesa_snorm_to_float(x, src_bits)); in _mesa_snorm_to_half() 198 return _mesa_unsigned_to_unsigned(_mesa_float_to_half(src), dst_bits); in _mesa_half_to_unsigned()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dvx_device.c | 116 border.ui[i] = _mesa_float_to_half(border.f[i]); in encode_border_color() 131 border.ui[i] = _mesa_float_to_half(border.f[i]); in encode_border_color() 149 border.ui[i] = _mesa_float_to_half(border.f[i]); in encode_border_color() 157 border.ui[i] = _mesa_float_to_half(border.f[i]); in encode_border_color()
|
/third_party/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()
|
/third_party/mesa3d/src/broadcom/compiler/ |
D | vir_opt_constant_alu.c | 77 (((uint32_t)_mesa_float_to_half(values[1].f)) << 16) | in opt_constant_add() 78 _mesa_float_to_half(values[0].f); in opt_constant_add()
|
/third_party/mesa3d/src/mesa/main/ |
D | format_utils.c | 1033 const uint16_t one = _mesa_float_to_half(1.0f); in convert_half_float() 1037 SWIZZLE_CONVERT(uint16_t, float, _mesa_float_to_half(src)); in convert_half_float() 1046 SWIZZLE_CONVERT(uint16_t, uint8_t, _mesa_float_to_half(src)); in convert_half_float() 1053 SWIZZLE_CONVERT(uint16_t, int8_t, _mesa_float_to_half(src)); in convert_half_float() 1060 SWIZZLE_CONVERT(uint16_t, uint16_t, _mesa_float_to_half(src)); in convert_half_float() 1067 SWIZZLE_CONVERT(uint16_t, int16_t, _mesa_float_to_half(src)); in convert_half_float() 1074 SWIZZLE_CONVERT(uint16_t, uint32_t, _mesa_float_to_half(src)); in convert_half_float() 1081 SWIZZLE_CONVERT(uint16_t, int32_t, _mesa_float_to_half(src)); in convert_half_float()
|
D | uniform_query.cpp | 1319 if (dst[c] != _mesa_float_to_half(src[c].f)) { in copy_uniforms_to_storage() 1339 dst[c] = _mesa_float_to_half(src[c].f); in copy_uniforms_to_storage() 1653 _mesa_float_to_half(src[(c * components) + r])) { in copy_uniform_matrix_to_storage() 1678 _mesa_float_to_half(src[(c * components) + r]); in copy_uniform_matrix_to_storage() 1700 _mesa_float_to_half(src[c + (r * vectors)])) { in copy_uniform_matrix_to_storage() 1725 _mesa_float_to_half(src[c + (r * vectors)]); in copy_uniform_matrix_to_storage()
|
/third_party/mesa3d/src/gallium/tests/unit/ |
D | u_half_test.c | 22 rh = _mesa_float_to_half(f.f); in test()
|
D | translate_test.c | 166 half_buffer[i] = _mesa_float_to_half((float) rand_double()); in main()
|
/third_party/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()
|
/third_party/mesa3d/src/util/tests/ |
D | half_float_test.cpp | 115 test_float_to_half_limits(_mesa_float_to_half); in TEST()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_const.c | 255 elems[0] = LLVMConstInt(elem_type, _mesa_float_to_half(1.0f), 0); in lp_build_one() 302 elem = LLVMConstInt(elem_type, _mesa_float_to_half((float)val), 0); in lp_build_const_elem()
|
/third_party/mesa3d/src/compiler/nir/tests/ |
D | negative_equal_tests.cpp | 323 c[i].u16 = _mesa_float_to_half(float(i + first)); in count_sequence() 381 dst[i].u16 = _mesa_float_to_half(-_mesa_half_to_float(src[i].u16)); in negate()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
D | v3dx_state.c | 56 _mesa_float_to_half(blend_color->color[i]); in v3d_set_blend_color() 708 _mesa_float_to_half(border.f[0]); in v3d_upload_sampler_state_variant() 710 _mesa_float_to_half(border.f[1]); in v3d_upload_sampler_state_variant() 712 _mesa_float_to_half(border.f[2]); in v3d_upload_sampler_state_variant() 714 _mesa_float_to_half(border.f[3]); in v3d_upload_sampler_state_variant()
|
D | v3dx_emit.c | 106 return _mesa_float_to_half(0.0); in swizzled_border_color() 108 return _mesa_float_to_half(1.0); in swizzled_border_color() 110 return _mesa_float_to_half(sampler->border_color.f[swiz]); in swizzled_border_color()
|
/third_party/mesa3d/src/gallium/drivers/asahi/ |
D | agx_pipe.c | 443 _mesa_float_to_half(ctx->batch->clear_color[0]), in agx_flush() 444 _mesa_float_to_half(ctx->batch->clear_color[1]), in agx_flush() 445 _mesa_float_to_half(ctx->batch->clear_color[2]), in agx_flush() 446 _mesa_float_to_half(ctx->batch->clear_color[3]) in agx_flush()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_texture.c | 195 _mesa_float_to_half(sampler->border_color.f[j]); in fd_setup_border_colors()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_fs_combine_constants.cpp | 238 val = _mesa_float_to_half(fabsf(_mesa_half_to_float(val))); in get_constant_value() 328 uint16_t h = _mesa_float_to_half(f); in representable_as_hf()
|
/third_party/mesa3d/src/panfrost/bifrost/valhall/ |
D | va_lower_constants.c | 80 uint16_t fp16 = _mesa_float_to_half(uif(value)); in va_demote_constant_fp16()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
D | fd6_blitter.c | 739 OUT_RING(ring, _mesa_float_to_half(color->f[0])); in emit_clear_color() 740 OUT_RING(ring, _mesa_float_to_half(color->f[1])); in emit_clear_color() 741 OUT_RING(ring, _mesa_float_to_half(color->f[2])); in emit_clear_color() 742 OUT_RING(ring, _mesa_float_to_half(color->f[3])); in emit_clear_color()
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_state.c | 625 OUT_CB(_mesa_float_to_half(c.color[2]) | in r300_set_blend_color() 626 (_mesa_float_to_half(c.color[3]) << 16)); in r300_set_blend_color() 627 OUT_CB(_mesa_float_to_half(c.color[0]) | in r300_set_blend_color() 628 (_mesa_float_to_half(c.color[1]) << 16)); in r300_set_blend_color() 758 alpha_value_fp16 = _mesa_float_to_half(state->alpha_ref_value); in r300_create_dsa_state()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_opt_phi_precision.c | 286 _mesa_float_to_half(lc->value[i].f32))) in can_convert_load_const()
|
/third_party/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()
|