Home
last modified time | relevance | path

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

123

/third_party/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()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_blend.c185 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()
Detnaviv_zsa.c96 extra_reference = _mesa_float_to_half(SATURATE(so->alpha_ref_value)); in etna_zsa_state_create()
/third_party/mesa3d/src/util/format/
Dformat_utils.h60 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/
Dv3dvx_device.c116 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/
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()
/third_party/mesa3d/src/broadcom/compiler/
Dvir_opt_constant_alu.c77 (((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/
Dformat_utils.c1033 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()
Duniform_query.cpp1319 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/
Du_half_test.c22 rh = _mesa_float_to_half(f.f); in test()
Dtranslate_test.c166 half_buffer[i] = _mesa_float_to_half((float) rand_double()); in main()
/third_party/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()
/third_party/mesa3d/src/util/tests/
Dhalf_float_test.cpp115 test_float_to_half_limits(_mesa_float_to_half); in TEST()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_const.c255 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/
Dnegative_equal_tests.cpp323 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/
Dv3dx_state.c56 _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()
Dv3dx_emit.c106 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/
Dagx_pipe.c443 _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/
Dfreedreno_texture.c195 _mesa_float_to_half(sampler->border_color.f[j]); in fd_setup_border_colors()
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs_combine_constants.cpp238 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/
Dva_lower_constants.c80 uint16_t fp16 = _mesa_float_to_half(uif(value)); in va_demote_constant_fp16()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_blitter.c739 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/
Dr300_state.c625 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/
Dnir_opt_phi_precision.c286 _mesa_float_to_half(lc->value[i].f32))) in can_convert_load_const()
/third_party/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()

123