Searched refs:util_iround (Results 1 – 8 of 8) sorted by relevance
/external/mesa3d/src/amd/vulkan/ |
D | radv_formats.c | 950 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/ |
D | nvc0_state_validate.c | 323 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/ |
D | lp_setup_line.c | 238 return util_iround(FIXED_ONE * a); in subpixel_snap() 303 int fixed_width = util_iround(width) * FIXED_ONE; in try_setup_line()
|
D | lp_setup_point.c | 302 return util_iround(FIXED_ONE * a); in subpixel_snap()
|
D | lp_setup_tri.c | 59 return util_iround(FIXED_ONE * a); in subpixel_snap()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_math.h | 212 util_iround(float f) in util_iround() function
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_math.h | 359 util_iround(float f) in util_iround() function
|
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_peephole.cpp | 1459 res.data.dst = util_iround(i->saturate ? \ in opnd() 1464 res.data.dst = util_iround(i->saturate ? \ in opnd()
|