Lines Matching refs:y1
59 static void set_plane_src(struct drm_plane_state *state, int x1, int y1, int x2,
63 state->src_y = y1;
65 state->src_h = y2 - y1;
68 state->src.y1 = y1;
73 static void set_damage_clip(struct drm_mode_rect *r, int x1, int y1, int x2,
77 r->y1 = y1;
96 int x1, int y1, int x2, int y2)
102 * Round down x1/y1 and round up x2/y2. This is because damage is not in
106 int src_y1 = state.src.y1 >> 16;
110 if (x1 >= x2 || y1 >= y2)
112 if (x1 < src_x1 || y1 < src_y1 || x2 > src_x2 || y2 > src_y2)
114 if (r->x1 != x1 || r->y1 != y1 || r->x2 != x2 || r->y2 != y2)
116 r->x1, r->y1, r->x2, r->y2, x1, y1, x2, y2);