Lines Matching refs:CLAMP

265    value |= ((uint32_t)(CLAMP(src[2], 0, 1) * 0x3ff)) & 0x3ff;  in emit_B10G10R10A2_UNORM()
266 value |= (((uint32_t)(CLAMP(src[1], 0, 1) * 0x3ff)) & 0x3ff) << 10; in emit_B10G10R10A2_UNORM()
267 value |= (((uint32_t)(CLAMP(src[0], 0, 1) * 0x3ff)) & 0x3ff) << 20; in emit_B10G10R10A2_UNORM()
268 value |= ((uint32_t)(CLAMP(src[3], 0, 1) * 0x3)) << 30; in emit_B10G10R10A2_UNORM()
280 value |= ((uint32_t)CLAMP(src[2], 0, 1023)) & 0x3ff; in emit_B10G10R10A2_USCALED()
281 value |= (((uint32_t)CLAMP(src[1], 0, 1023)) & 0x3ff) << 10; in emit_B10G10R10A2_USCALED()
282 value |= (((uint32_t)CLAMP(src[0], 0, 1023)) & 0x3ff) << 20; in emit_B10G10R10A2_USCALED()
283 value |= ((uint32_t)CLAMP(src[3], 0, 3)) << 30; in emit_B10G10R10A2_USCALED()
295 value |= (uint32_t)(((uint32_t)(CLAMP(src[2], -1, 1) * 0x1ff)) & 0x3ff) ; in emit_B10G10R10A2_SNORM()
296 value |= (uint32_t)((((uint32_t)(CLAMP(src[1], -1, 1) * 0x1ff)) & 0x3ff) << 10) ; in emit_B10G10R10A2_SNORM()
297 value |= (uint32_t)((((uint32_t)(CLAMP(src[0], -1, 1) * 0x1ff)) & 0x3ff) << 20) ; in emit_B10G10R10A2_SNORM()
298 value |= (uint32_t)(((uint32_t)(CLAMP(src[3], -1, 1) * 0x1)) << 30) ; in emit_B10G10R10A2_SNORM()
310 value |= (uint32_t)(((uint32_t)CLAMP(src[2], -512, 511)) & 0x3ff) ; in emit_B10G10R10A2_SSCALED()
311 value |= (uint32_t)((((uint32_t)CLAMP(src[1], -512, 511)) & 0x3ff) << 10) ; in emit_B10G10R10A2_SSCALED()
312 value |= (uint32_t)((((uint32_t)CLAMP(src[0], -512, 511)) & 0x3ff) << 20) ; in emit_B10G10R10A2_SSCALED()
313 value |= (uint32_t)(((uint32_t)CLAMP(src[3], -2, 1)) << 30) ; in emit_B10G10R10A2_SSCALED()
325 value |= ((uint32_t)(CLAMP(src[0], 0, 1) * 0x3ff)) & 0x3ff; in emit_R10G10B10A2_UNORM()
326 value |= (((uint32_t)(CLAMP(src[1], 0, 1) * 0x3ff)) & 0x3ff) << 10; in emit_R10G10B10A2_UNORM()
327 value |= (((uint32_t)(CLAMP(src[2], 0, 1) * 0x3ff)) & 0x3ff) << 20; in emit_R10G10B10A2_UNORM()
328 value |= ((uint32_t)(CLAMP(src[3], 0, 1) * 0x3)) << 30; in emit_R10G10B10A2_UNORM()
340 value |= ((uint32_t)CLAMP(src[0], 0, 1023)) & 0x3ff; in emit_R10G10B10A2_USCALED()
341 value |= (((uint32_t)CLAMP(src[1], 0, 1023)) & 0x3ff) << 10; in emit_R10G10B10A2_USCALED()
342 value |= (((uint32_t)CLAMP(src[2], 0, 1023)) & 0x3ff) << 20; in emit_R10G10B10A2_USCALED()
343 value |= ((uint32_t)CLAMP(src[3], 0, 3)) << 30; in emit_R10G10B10A2_USCALED()
355 value |= (uint32_t)(((uint32_t)(CLAMP(src[0], -1, 1) * 0x1ff)) & 0x3ff) ; in emit_R10G10B10A2_SNORM()
356 value |= (uint32_t)((((uint32_t)(CLAMP(src[1], -1, 1) * 0x1ff)) & 0x3ff) << 10) ; in emit_R10G10B10A2_SNORM()
357 value |= (uint32_t)((((uint32_t)(CLAMP(src[2], -1, 1) * 0x1ff)) & 0x3ff) << 20) ; in emit_R10G10B10A2_SNORM()
358 value |= (uint32_t)(((uint32_t)(CLAMP(src[3], -1, 1) * 0x1)) << 30) ; in emit_R10G10B10A2_SNORM()
370 value |= (uint32_t)(((uint32_t)CLAMP(src[0], -512, 511)) & 0x3ff) ; in emit_R10G10B10A2_SSCALED()
371 value |= (uint32_t)((((uint32_t)CLAMP(src[1], -512, 511)) & 0x3ff) << 10) ; in emit_R10G10B10A2_SSCALED()
372 value |= (uint32_t)((((uint32_t)CLAMP(src[2], -512, 511)) & 0x3ff) << 20) ; in emit_R10G10B10A2_SSCALED()
373 value |= (uint32_t)(((uint32_t)CLAMP(src[3], -2, 1)) << 30) ; in emit_R10G10B10A2_SSCALED()