Home
last modified time | relevance | path

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

/external/mesa3d/src/amd/vulkan/
Dradv_formats.c950 clear_vals[0] = ((uint16_t)util_iround(CLAMP(value->float32[0], 0.0f, 1.0f) * 0xffff)) & 0xffff; in radv_format_pack_clear_color()
954 clear_vals[0] = ((uint16_t)util_iround(CLAMP(value->float32[0], 0.0f, 1.0f) * 0xffff)) & 0xffff; in radv_format_pack_clear_color()
955 clear_vals[0] |= ((uint16_t)util_iround(CLAMP(value->float32[1], 0.0f, 1.0f) * 0xffff)) << 16; in radv_format_pack_clear_color()
959 clear_vals[0] = ((uint16_t)util_iround(CLAMP(value->float32[0], 0.0f, 1.0f) * 0xffff)) & 0xffff; in radv_format_pack_clear_color()
960 clear_vals[0] |= ((uint16_t)util_iround(CLAMP(value->float32[1], 0.0f, 1.0f) * 0xffff)) << 16; in radv_format_pack_clear_color()
961 clear_vals[1] = ((uint16_t)util_iround(CLAMP(value->float32[2], 0.0f, 1.0f) * 0xffff)) & 0xffff; in radv_format_pack_clear_color()
962 clear_vals[1] |= ((uint16_t)util_iround(CLAMP(value->float32[3], 0.0f, 1.0f) * 0xffff)) << 16; in radv_format_pack_clear_color()
965 clear_vals[0] = ((uint16_t)util_iround(CLAMP(value->float32[0], -1.0f, 1.0f) * 0x7fff)) & 0xffff; in radv_format_pack_clear_color()
966 clear_vals[0] |= ((uint16_t)util_iround(CLAMP(value->float32[1], -1.0f, 1.0f) * 0x7fff)) << 16; in radv_format_pack_clear_color()
967 clear_vals[1] = ((uint16_t)util_iround(CLAMP(value->float32[2], -1.0f, 1.0f) * 0x7fff)) & 0xffff; in radv_format_pack_clear_color()
[all …]
/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()
303 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.c59 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/virglrenderer/src/gallium/auxiliary/util/
Du_math.h359 util_iround(float f) in util_iround() function
/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_peephole.cpp1459 res.data.dst = util_iround(i->saturate ? \ in opnd()
1464 res.data.dst = util_iround(i->saturate ? \ in opnd()