Lines Matching refs:xf86_crtc

458 amdgpu_scanout_extents_intersect(xf86CrtcPtr xf86_crtc, BoxPtr extents)
460 if (xf86_crtc->scrn->is_gpu) {
461 extents->x1 -= xf86_crtc->x;
462 extents->y1 -= xf86_crtc->y;
463 extents->x2 -= xf86_crtc->x;
464 extents->y2 -= xf86_crtc->y;
466 extents->x1 -= xf86_crtc->filter_width >> 1;
467 extents->x2 += xf86_crtc->filter_width >> 1;
468 extents->y1 -= xf86_crtc->filter_height >> 1;
469 extents->y2 += xf86_crtc->filter_height >> 1;
470 pixman_f_transform_bounds(&xf86_crtc->f_framebuffer_to_crtc, extents);
475 extents->x2 = min(extents->x2, xf86_crtc->mode.HDisplay);
476 extents->y2 = min(extents->y2, xf86_crtc->mode.VDisplay);
520 amdgpu_sync_scanout_pixmaps(xf86CrtcPtr xf86_crtc, RegionPtr new_region,
523 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
527 ScrnInfoPtr scrn = xf86_crtc->scrn;
543 if (!amdgpu_scanout_extents_intersect(xf86_crtc, &extents))
546 if (xf86_crtc->driverIsPerformingTransform) {
548 &xf86_crtc->f_framebuffer_to_crtc,
552 RegionTranslate(sync_region, -xf86_crtc->x, -xf86_crtc->y);
740 xf86CrtcPtr xf86_crtc = xf86_config->crtc[c];
741 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
744 return xf86_crtc;
806 xf86CrtcPtr xf86_crtc = amdgpu_prime_dirty_to_crtc(dirty);
810 if (!xf86_crtc || !xf86_crtc->enabled)
813 drmmode_crtc = xf86_crtc->driver_private;
819 drm_queue_seq = amdgpu_drm_queue_alloc(xf86_crtc,
828 amdgpu_prime_scanout_update_handler(xf86_crtc, 0, 0, NULL);
834 if (!drmmode_wait_vblank(xf86_crtc, DRM_VBLANK_RELATIVE | DRM_VBLANK_EVENT,
847 amdgpu_drm_queue_handle_deferred(xf86_crtc);
856 xf86_crtc->funcs->set_mode_major(xf86_crtc, &xf86_crtc->mode,
857 xf86_crtc->rotation,
858 xf86_crtc->x, xf86_crtc->y);
987 amdgpu_scanout_do_update(xf86CrtcPtr xf86_crtc, int scanout_id,
990 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
992 ScrnInfoPtr scrn = xf86_crtc->scrn;
996 if (!xf86_crtc->enabled ||
1002 if (!amdgpu_scanout_extents_intersect(xf86_crtc, &extents))
1006 amdgpu_sync_scanout_pixmaps(xf86_crtc, &region, scanout_id);
1010 if (xf86_crtc->driverIsPerformingTransform) {
1030 error = SetPictureTransform(src, &xf86_crtc->crtc_to_framebuffer);
1037 if (xf86_crtc->filter)
1038 SetPicturePictFilter(src, xf86_crtc->filter, xf86_crtc->params,
1039 xf86_crtc->nparams);
1060 xf86_crtc->x + extents.x1, xf86_crtc->y + extents.y1,
1100 amdgpu_scanout_update(xf86CrtcPtr xf86_crtc)
1102 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
1103 ScrnInfoPtr scrn = xf86_crtc->scrn;
1110 if (!xf86_crtc->enabled ||
1125 if (!amdgpu_scanout_extents_intersect(xf86_crtc, &extents)) {
1130 drm_queue_seq = amdgpu_drm_queue_alloc(xf86_crtc,
1140 amdgpu_scanout_update_handler(xf86_crtc, 0, 0, drmmode_crtc);
1146 if (!drmmode_wait_vblank(xf86_crtc, DRM_VBLANK_RELATIVE | DRM_VBLANK_EVENT,
1159 amdgpu_drm_queue_handle_deferred(xf86_crtc);
1168 xf86_crtc->funcs->set_mode_major(xf86_crtc, &xf86_crtc->mode,
1169 xf86_crtc->rotation,
1170 xf86_crtc->x, xf86_crtc->y);
1178 xf86CrtcPtr xf86_crtc)
1180 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
1182 ScrnInfoPtr scrn = xf86_crtc->scrn;
1194 if (!amdgpu_scanout_do_update(xf86_crtc, scanout_id,
1209 drm_queue_seq = amdgpu_drm_queue_alloc(xf86_crtc,
1234 amdgpu_scanout_update(xf86_crtc);