/third_party/mesa3d/src/util/format/ |
D | format_utils.h | 83 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/ |
D | brw_fs_combine_constants.cpp | 238 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/ |
D | mipmap.c | 153 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 …]
|
D | uniform_query.cpp | 425 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()
|
D | pack.c | 420 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()
|
D | texcompress_bptc_tmp.h | 1026 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/ |
D | opt_minmax.cpp | 146 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()
|
D | ir.cpp | 1112 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 …]
|
D | ir_constant_expression.cpp | 416 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()
|
D | ir_print_visitor.cpp | 510 print_float_constant(f, _mesa_half_to_float(ir->value.f16[i])); in visit()
|
/third_party/mesa3d/src/panfrost/bifrost/valhall/ |
D | va_lower_constants.c | 83 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/ |
D | u_half_test.c | 21 f.f = _mesa_half_to_float(h); in test()
|
/third_party/mesa3d/src/util/tests/ |
D | half_float_test.cpp | 87 test_half_to_float_limits(_mesa_half_to_float); in TEST()
|
/third_party/mesa3d/src/util/ |
D | half_float.h | 75 _mesa_half_to_float(uint16_t val) in _mesa_half_to_float() function
|
/third_party/mesa3d/src/mesa/vbo/ |
D | vbo_attrib_tmp.h | 67 #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/ |
D | midgard_print_constant.c | 137 float v = _mesa_half_to_float(consts->f16[c]); in mir_print_constant_component()
|
/third_party/mesa3d/src/asahi/compiler/ |
D | agx_optimizer.c | 131 float f = fp16 ? _mesa_half_to_float(def->imm) : uif(def->imm); in agx_optimizer_inline_imm()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_acceleration_structure.c | 309 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/ |
D | nir_opt_phi_precision.c | 285 if (lc->value[i].f32 != _mesa_half_to_float( in can_convert_load_const()
|
D | nir_instr_set.c | 379 return _mesa_half_to_float(c1.u16) == -_mesa_half_to_float(c2.u16); in nir_const_value_negative_equal()
|
D | nir_lower_mediump.c | 499 return value == _mesa_half_to_float(_mesa_float_to_half(value)); in const_is_f16()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_disasm.c | 382 printf("%f/%.5X", _mesa_half_to_float(src->imm_val), src->imm_val); in print_src()
|
/third_party/mesa3d/src/compiler/nir/tests/ |
D | negative_equal_tests.cpp | 381 dst[i].u16 = _mesa_float_to_half(-_mesa_half_to_float(src[i].u16)); in negate()
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_cp.c | 180 reg->uim_val = fui(_mesa_half_to_float(reg->uim_val)); in lower_immed()
|
/third_party/mesa3d/src/compiler/isaspec/ |
D | decode.c | 641 print(scope->state, "%f", _mesa_half_to_float(val)); in display_field()
|