Lines Matching refs:srcX0
718 const GLint srcX0 = *srcX, srcY0 = *srcY; in _mesa_clip_copytexsubimage() local
722 *destX = *destX + *srcX - srcX0; in _mesa_clip_copytexsubimage()
779 clip_right_or_top(GLint *srcX0, GLint *srcX1, in clip_right_or_top() argument
792 bias = (*srcX0 < *srcX1) ? 0.5F : -0.5F; in clip_right_or_top()
793 *srcX1 = *srcX0 + (GLint) (t * (*srcX1 - *srcX0) + bias); in clip_right_or_top()
802 bias = (*srcX0 < *srcX1) ? -0.5F : 0.5F; in clip_right_or_top()
803 *srcX0 = *srcX1 + (GLint) (t * (*srcX0 - *srcX1) + bias); in clip_right_or_top()
812 clip_left_or_bottom(GLint *srcX0, GLint *srcX1, in clip_left_or_bottom() argument
825 bias = (*srcX0 < *srcX1) ? 0.5F : -0.5F; /* flipped??? */ in clip_left_or_bottom()
826 *srcX0 = *srcX0 + (GLint) (t * (*srcX1 - *srcX0) + bias); in clip_left_or_bottom()
835 bias = (*srcX0 < *srcX1) ? 0.5F : -0.5F; in clip_left_or_bottom()
836 *srcX1 = *srcX1 + (GLint) (t * (*srcX0 - *srcX1) + bias); in clip_left_or_bottom()
856 GLint *srcX0, GLint *srcY0, GLint *srcX1, GLint *srcY1, in _mesa_clip_blit() argument
892 if (*srcX0 == *srcX1) in _mesa_clip_blit()
894 if (*srcX0 <= srcXmin && *srcX1 <= srcXmin) in _mesa_clip_blit()
896 if (*srcX0 >= srcXmax && *srcX1 >= srcXmax) in _mesa_clip_blit()
909 clip_right_or_top(srcX0, srcX1, dstX0, dstX1, dstXmax); in _mesa_clip_blit()
911 clip_left_or_bottom(srcX0, srcX1, dstX0, dstX1, dstXmin); in _mesa_clip_blit()
917 clip_right_or_top(dstX0, dstX1, srcX0, srcX1, srcXmax); in _mesa_clip_blit()
919 clip_left_or_bottom(dstX0, dstX1, srcX0, srcX1, srcXmin); in _mesa_clip_blit()
939 ASSERT(*srcX0 >= srcXmin); in _mesa_clip_blit()
940 ASSERT(*srcX0 <= srcXmax); in _mesa_clip_blit()