Home | History | Annotate | Download | only in softpipe

Lines Matching defs:max_x

886    int new_x, new_y, max_x;
888 max_x = (int) u_minify(texture->width0, level);
906 if (y < 0 || y >= max_x) {
907 y = CLAMP(y, 0, max_x - 1);
909 new_x = get_next_xcoord(face, 0, max_x -1, x, y);
910 new_y = get_next_ycoord(face, 0, max_x -1, x, y);
912 } else if (x >= max_x) {
913 if (y < 0 || y >= max_x) {
914 y = CLAMP(y, 0, max_x - 1);
916 new_x = get_next_xcoord(face, 1, max_x -1, x, y);
917 new_y = get_next_ycoord(face, 1, max_x -1, x, y);
920 new_x = get_next_xcoord(face, 2, max_x -1, x, y);
921 new_y = get_next_ycoord(face, 2, max_x -1, x, y);
923 } else if (y >= max_x) {
924 new_x = get_next_xcoord(face, 3, max_x -1, x, y);
925 new_y = get_next_ycoord(face, 3, max_x -1, x, y);