Home
last modified time | relevance | path

Searched refs:util_iround (Results 1 – 8 of 8) sorted by relevance

/external/mesa3d/src/gallium/drivers/ilo/core/
Dilo_state_sampler.c545 dw[9] = (int16_t) util_iround(rgba[0] * 32767.0f) | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
546 (int16_t) util_iround(rgba[1] * 32767.0f) << 16; in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
547 dw[10] = (int16_t) util_iround(rgba[2] * 32767.0f) | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
548 (int16_t) util_iround(rgba[3] * 32767.0f) << 16; in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
551 dw[11] = (int8_t) util_iround(rgba[0] * 127.0f) | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
552 (int8_t) util_iround(rgba[1] * 127.0f) << 8 | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
553 (int8_t) util_iround(rgba[2] * 127.0f) << 16 | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
554 (int8_t) util_iround(rgba[3] * 127.0f) << 24; in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
563 dw[0] = (uint8_t) util_iround(rgba[0] * 255.0f) | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
564 (uint8_t) util_iround(rgba[1] * 255.0f) << 8 | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_formats.c913 clear_vals[0] = ((uint16_t)util_iround(CLAMP(value->float32[0], 0.0f, 1.0f) * 0xffff)) & 0xffff; in radv_format_pack_clear_color()
917 clear_vals[0] = ((uint16_t)util_iround(CLAMP(value->float32[0], 0.0f, 1.0f) * 0xffff)) & 0xffff; in radv_format_pack_clear_color()
918 clear_vals[0] |= ((uint16_t)util_iround(CLAMP(value->float32[1], 0.0f, 1.0f) * 0xffff)) << 16; in radv_format_pack_clear_color()
922 clear_vals[0] = ((uint16_t)util_iround(CLAMP(value->float32[0], 0.0f, 1.0f) * 0xffff)) & 0xffff; in radv_format_pack_clear_color()
923 clear_vals[0] |= ((uint16_t)util_iround(CLAMP(value->float32[1], 0.0f, 1.0f) * 0xffff)) << 16; in radv_format_pack_clear_color()
924 clear_vals[1] = ((uint16_t)util_iround(CLAMP(value->float32[2], 0.0f, 1.0f) * 0xffff)) & 0xffff; in radv_format_pack_clear_color()
925 clear_vals[1] |= ((uint16_t)util_iround(CLAMP(value->float32[3], 0.0f, 1.0f) * 0xffff)) << 16; in radv_format_pack_clear_color()
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_state_validate.c323 x = util_iround(MAX2(0.0f, vp->translate[0] - fabsf(vp->scale[0]))); in nvc0_validate_viewport()
324 y = util_iround(MAX2(0.0f, vp->translate[1] - fabsf(vp->scale[1]))); in nvc0_validate_viewport()
325 w = util_iround(vp->translate[0] + fabsf(vp->scale[0])) - x; in nvc0_validate_viewport()
326 h = util_iround(vp->translate[1] + fabsf(vp->scale[1])) - y; in nvc0_validate_viewport()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_line.c238 return util_iround(FIXED_ONE * a); in subpixel_snap()
301 int fixed_width = util_iround(width) * FIXED_ONE; in try_setup_line()
Dlp_setup_point.c302 return util_iround(FIXED_ONE * a); in subpixel_snap()
Dlp_setup_tri.c57 return util_iround(FIXED_ONE * a); in subpixel_snap()
/external/mesa3d/src/gallium/auxiliary/util/
Du_math.h212 util_iround(float f) in util_iround() function
/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_peephole.cpp1409 res.data.dst = util_iround(i->saturate ? \ in opnd()
1414 res.data.dst = util_iround(i->saturate ? \ in opnd()