Home
last modified time | relevance | path

Searched refs:_mesa_half_to_float (Results 1 – 25 of 37) sorted by relevance

12

/third_party/mesa3d/src/util/format/
Dformat_utils.h83 return _mesa_float_to_unorm(_mesa_half_to_float(x), dst_bits); in _mesa_half_to_unorm()
129 return _mesa_float_to_snorm(_mesa_half_to_float(x), dst_bits); in _mesa_half_to_snorm()
204 return _mesa_float_to_signed(_mesa_half_to_float(src), dst_bits); in _mesa_half_to_signed()
/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()
329 u.f = _mesa_half_to_float(h); in representable_as_hf()
572 assert((isnan(_mesa_half_to_float(reg->d & 0xffffu)) && in opt_combine_constants()
573 isnan(_mesa_half_to_float(table.imm[i].w))) || in opt_combine_constants()
574 (fabsf(_mesa_half_to_float(reg->d & 0xffffu)) == in opt_combine_constants()
575 fabsf(_mesa_half_to_float(table.imm[i].w)))); in opt_combine_constants()
/third_party/mesa3d/src/mesa/main/
Dmipmap.c153 const GLfloat aj = _mesa_half_to_float(rowA[j][e]); \
154 const GLfloat ak = _mesa_half_to_float(rowA[k][e]); \
155 const GLfloat bj = _mesa_half_to_float(rowB[j][e]); \
156 const GLfloat bk = _mesa_half_to_float(rowB[k][e]); \
157 const GLfloat cj = _mesa_half_to_float(rowC[j][e]); \
158 const GLfloat ck = _mesa_half_to_float(rowC[k][e]); \
159 const GLfloat dj = _mesa_half_to_float(rowD[j][e]); \
160 const GLfloat dk = _mesa_half_to_float(rowD[k][e]); \
443 aj = _mesa_half_to_float(rowA[j][comp]); in do_row()
444 ak = _mesa_half_to_float(rowA[k][comp]); in do_row()
[all …]
Duniform_query.cpp425 dst[didx].f = _mesa_half_to_float(((uint16_t*)src)[sidx]); in _mesa_get_uniform()
465 double f = _mesa_half_to_float(((uint16_t*)src)[sidx]); in _mesa_get_uniform()
537 (int64_t)roundf(_mesa_half_to_float(((uint16_t*)src)[sidx])); in _mesa_get_uniform()
587 float f = _mesa_half_to_float(((uint16_t*)src)[sidx]); in _mesa_get_uniform()
652 float f = _mesa_half_to_float(((uint16_t*)src)[sidx]); in _mesa_get_uniform()
703 float f = _mesa_half_to_float(((uint16_t*)src)[sidx]); in _mesa_get_uniform()
Dpack.c420 indexes[i] = (GLuint) _mesa_half_to_float(value); in extract_uint_indexes()
425 indexes[i] = (GLuint) _mesa_half_to_float(s[i]); in extract_uint_indexes()
918 depthValues[i] = _mesa_half_to_float(value); in _mesa_unpack_depth_span()
Dtexcompress_bptc_tmp.h1026 result[component] = _mesa_half_to_float(value); in fetch_rgb_float_from_block()
1125 result[component] = _mesa_half_to_float(value); in decompress_rgb_float_block()
/third_party/mesa3d/src/compiler/glsl/
Dopt_minmax.cpp146 float af = _mesa_half_to_float(a->value.f16[c0]); in compare_components()
147 float bf = _mesa_half_to_float(b->value.f16[c1]); in compare_components()
223 float bf = _mesa_half_to_float(b->value.f16[i]); in combine_constant()
224 float cf = _mesa_half_to_float(c->value.f16[i]); in combine_constant()
Dir.cpp1112 case GLSL_TYPE_FLOAT16: return ((int)_mesa_half_to_float(this->value.f16[i])) != 0; in get_bool_component()
1137 case GLSL_TYPE_FLOAT16: return _mesa_half_to_float(this->value.f16[i]); in get_float_component()
1171 case GLSL_TYPE_FLOAT16: return (double) _mesa_half_to_float(this->value.f16[i]); in get_double_component()
1196 case GLSL_TYPE_FLOAT16: return (int16_t) _mesa_half_to_float(this->value.f16[i]); in get_int16_component()
1221 case GLSL_TYPE_FLOAT16: return (uint16_t) _mesa_half_to_float(this->value.f16[i]); in get_uint16_component()
1246 case GLSL_TYPE_FLOAT16: return (int) _mesa_half_to_float(this->value.f16[i]); in get_int_component()
1271 case GLSL_TYPE_FLOAT16: return (unsigned) _mesa_half_to_float(this->value.f16[i]); in get_uint_component()
1296 case GLSL_TYPE_FLOAT16: return (int64_t) _mesa_half_to_float(this->value.f16[i]); in get_int64_component()
1321 case GLSL_TYPE_FLOAT16: return (uint64_t) _mesa_half_to_float(this->value.f16[i]); in get_uint64_component()
1535 if (_mesa_half_to_float(this->value.f16[i]) != in has_value()
[all …]
Dir_constant_expression.cpp416 return _mesa_half_to_float(u); in unpack_half_1x16()
723 f.f[i] = _mesa_half_to_float(op[operand]->value.f16[i]); in constant_expression_value()
Dir_print_visitor.cpp510 print_float_constant(f, _mesa_half_to_float(ir->value.f16[i])); in visit()
/third_party/mesa3d/src/panfrost/bifrost/valhall/
Dva_lower_constants.c83 if (fui(_mesa_half_to_float(fp16)) == value) in va_demote_constant_fp16()
206 value = fui(_mesa_half_to_float(value)); in va_lower_constants()
/third_party/mesa3d/src/gallium/tests/unit/
Du_half_test.c21 f.f = _mesa_half_to_float(h); in test()
/third_party/mesa3d/src/util/tests/
Dhalf_float_test.cpp87 test_half_to_float_limits(_mesa_half_to_float); in TEST()
/third_party/mesa3d/src/util/
Dhalf_float.h75 _mesa_half_to_float(uint16_t val) in _mesa_half_to_float() function
/third_party/mesa3d/src/mesa/vbo/
Dvbo_attrib_tmp.h67 #define ATTR1HV( A, V ) ATTRF( A, 1, _mesa_half_to_float((uint16_t)(V)[0]), \
69 #define ATTR2HV( A, V ) ATTRF( A, 2, _mesa_half_to_float((uint16_t)(V)[0]), \
70 _mesa_half_to_float((uint16_t)(V)[1]), 0, 1 )
71 #define ATTR3HV( A, V ) ATTRF( A, 3, _mesa_half_to_float((uint16_t)(V)[0]), \
72 _mesa_half_to_float((uint16_t)(V)[1]), \
73 _mesa_half_to_float((uint16_t)(V)[2]), 1 )
74 #define ATTR4HV( A, V ) ATTRF( A, 4, _mesa_half_to_float((uint16_t)(V)[0]), \
75 _mesa_half_to_float((uint16_t)(V)[1]), \
76 _mesa_half_to_float((uint16_t)(V)[2]), \
77 _mesa_half_to_float((uint16_t)(V)[3]) )
[all …]
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_print_constant.c137 float v = _mesa_half_to_float(consts->f16[c]); in mir_print_constant_component()
/third_party/mesa3d/src/asahi/compiler/
Dagx_optimizer.c131 float f = fp16 ? _mesa_half_to_float(def->imm) : uif(def->imm); in agx_optimizer_inline_imm()
/third_party/mesa3d/src/amd/vulkan/
Dradv_acceleration_structure.c309 coords[0] = _mesa_half_to_float(*(const uint16_t *)(v_data + 0)); in build_triangles()
310 coords[1] = _mesa_half_to_float(*(const uint16_t *)(v_data + 2)); in build_triangles()
315 coords[0] = _mesa_half_to_float(*(const uint16_t *)(v_data + 0)); in build_triangles()
316 coords[1] = _mesa_half_to_float(*(const uint16_t *)(v_data + 2)); in build_triangles()
317 coords[2] = _mesa_half_to_float(*(const uint16_t *)(v_data + 4)); in build_triangles()
321 coords[0] = _mesa_half_to_float(*(const uint16_t *)(v_data + 0)); in build_triangles()
322 coords[1] = _mesa_half_to_float(*(const uint16_t *)(v_data + 2)); in build_triangles()
323 coords[2] = _mesa_half_to_float(*(const uint16_t *)(v_data + 4)); in build_triangles()
324 coords[3] = _mesa_half_to_float(*(const uint16_t *)(v_data + 6)); in build_triangles()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_phi_precision.c285 if (lc->value[i].f32 != _mesa_half_to_float( in can_convert_load_const()
Dnir_instr_set.c379 return _mesa_half_to_float(c1.u16) == -_mesa_half_to_float(c2.u16); in nir_const_value_negative_equal()
Dnir_lower_mediump.c499 return value == _mesa_half_to_float(_mesa_float_to_half(value)); in const_is_f16()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_disasm.c382 printf("%f/%.5X", _mesa_half_to_float(src->imm_val), src->imm_val); in print_src()
/third_party/mesa3d/src/compiler/nir/tests/
Dnegative_equal_tests.cpp381 dst[i].u16 = _mesa_float_to_half(-_mesa_half_to_float(src[i].u16)); in negate()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_cp.c180 reg->uim_val = fui(_mesa_half_to_float(reg->uim_val)); in lower_immed()
/third_party/mesa3d/src/compiler/isaspec/
Ddecode.c641 print(scope->state, "%f", _mesa_half_to_float(val)); in display_field()

12