Lines Matching refs:clip
45 struct vmw_clip_rect clip, in vmw_clip_cliprects() argument
52 int x1 = max_t(int, clip.x1, rects[i].x1); in vmw_clip_cliprects()
53 int y1 = max_t(int, clip.y1, rects[i].y1); in vmw_clip_cliprects()
54 int x2 = min_t(int, clip.x2, rects[i].x2); in vmw_clip_cliprects()
55 int y2 = min_t(int, clip.y2, rects[i].y2); in vmw_clip_cliprects()
530 struct vmw_clip_rect clip; in do_surface_dirty_sou() local
533 clip.x1 = left - unit->crtc.x; in do_surface_dirty_sou()
534 clip.y1 = top - unit->crtc.y; in do_surface_dirty_sou()
535 clip.x2 = right - unit->crtc.x; in do_surface_dirty_sou()
536 clip.y2 = bottom - unit->crtc.y; in do_surface_dirty_sou()
539 if (clip.x1 >= unit->crtc.mode.hdisplay || in do_surface_dirty_sou()
540 clip.y1 >= unit->crtc.mode.vdisplay || in do_surface_dirty_sou()
541 clip.x2 <= 0 || clip.y2 <= 0) in do_surface_dirty_sou()
548 cmd->body.destRect.left = clip.x1; in do_surface_dirty_sou()
549 cmd->body.destRect.right = clip.x2; in do_surface_dirty_sou()
550 cmd->body.destRect.top = clip.y1; in do_surface_dirty_sou()
551 cmd->body.destRect.bottom = clip.y2; in do_surface_dirty_sou()
554 clip.x2 = unit->crtc.mode.hdisplay - clip.x1; in do_surface_dirty_sou()
555 clip.y2 = unit->crtc.mode.vdisplay - clip.y1; in do_surface_dirty_sou()
556 clip.x1 = 0 - clip.x1; in do_surface_dirty_sou()
557 clip.y1 = 0 - clip.y1; in do_surface_dirty_sou()
564 vmw_clip_cliprects(tmp, num_clips, clip, blits, &num); in do_surface_dirty_sou()
1300 struct vmw_clip_rect clip; in vmw_kms_present() local
1303 clip.x1 = left + destX - unit->crtc.x; in vmw_kms_present()
1304 clip.y1 = top + destY - unit->crtc.y; in vmw_kms_present()
1305 clip.x2 = right + destX - unit->crtc.x; in vmw_kms_present()
1306 clip.y2 = bottom + destY - unit->crtc.y; in vmw_kms_present()
1309 if (clip.x1 >= unit->crtc.mode.hdisplay || in vmw_kms_present()
1310 clip.y1 >= unit->crtc.mode.vdisplay || in vmw_kms_present()
1311 clip.x2 <= 0 || clip.y2 <= 0) in vmw_kms_present()
1318 cmd->body.destRect.left = clip.x1; in vmw_kms_present()
1319 cmd->body.destRect.right = clip.x2; in vmw_kms_present()
1320 cmd->body.destRect.top = clip.y1; in vmw_kms_present()
1321 cmd->body.destRect.bottom = clip.y2; in vmw_kms_present()
1324 clip.x2 = unit->crtc.mode.hdisplay - clip.x1; in vmw_kms_present()
1325 clip.y2 = unit->crtc.mode.vdisplay - clip.y1; in vmw_kms_present()
1326 clip.x1 = 0 - clip.x1; in vmw_kms_present()
1327 clip.y1 = 0 - clip.y1; in vmw_kms_present()
1334 vmw_clip_cliprects(tmp, num_clips, clip, blits, &num); in vmw_kms_present()