Lines Matching refs:xf86_crtc
405 radeon_scanout_extents_intersect(xf86CrtcPtr xf86_crtc, BoxPtr extents)
407 if (xf86_crtc->scrn->is_gpu) {
408 extents->x1 -= xf86_crtc->x;
409 extents->y1 -= xf86_crtc->y;
410 extents->x2 -= xf86_crtc->x;
411 extents->y2 -= xf86_crtc->y;
413 extents->x1 -= xf86_crtc->filter_width >> 1;
414 extents->x2 += xf86_crtc->filter_width >> 1;
415 extents->y1 -= xf86_crtc->filter_height >> 1;
416 extents->y2 += xf86_crtc->filter_height >> 1;
417 pixman_f_transform_bounds(&xf86_crtc->f_framebuffer_to_crtc, extents);
422 extents->x2 = min(extents->x2, xf86_crtc->mode.HDisplay);
423 extents->y2 = min(extents->y2, xf86_crtc->mode.VDisplay);
467 radeon_sync_scanout_pixmaps(xf86CrtcPtr xf86_crtc, RegionPtr new_region,
470 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
474 ScrnInfoPtr scrn = xf86_crtc->scrn;
492 if (!radeon_scanout_extents_intersect(xf86_crtc, &extents))
495 if (xf86_crtc->driverIsPerformingTransform) {
497 &xf86_crtc->f_framebuffer_to_crtc,
501 RegionTranslate(sync_region, -xf86_crtc->x, -xf86_crtc->y);
694 xf86CrtcPtr xf86_crtc = xf86_config->crtc[c];
695 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
698 return xf86_crtc;
760 xf86CrtcPtr xf86_crtc = radeon_prime_dirty_to_crtc(dirty);
764 if (!xf86_crtc || !xf86_crtc->enabled)
767 drmmode_crtc = xf86_crtc->driver_private;
773 drm_queue_seq = radeon_drm_queue_alloc(xf86_crtc,
782 radeon_prime_scanout_update_handler(xf86_crtc, 0, 0, NULL);
788 if (!drmmode_wait_vblank(xf86_crtc, DRM_VBLANK_RELATIVE | DRM_VBLANK_EVENT,
801 radeon_drm_queue_handle_deferred(xf86_crtc);
810 xf86_crtc->funcs->set_mode_major(xf86_crtc, &xf86_crtc->mode,
811 xf86_crtc->rotation,
812 xf86_crtc->x, xf86_crtc->y);
943 radeon_scanout_do_update(xf86CrtcPtr xf86_crtc, int scanout_id,
946 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
948 ScrnInfoPtr scrn = xf86_crtc->scrn;
954 if (!xf86_crtc->enabled ||
960 if (!radeon_scanout_extents_intersect(xf86_crtc, &extents))
964 radeon_sync_scanout_pixmaps(xf86_crtc, ®ion, scanout_id);
971 if (xf86_crtc->driverIsPerformingTransform) {
992 error = SetPictureTransform(src, &xf86_crtc->crtc_to_framebuffer);
999 if (xf86_crtc->filter)
1000 SetPicturePictFilter(src, xf86_crtc->filter, xf86_crtc->params,
1001 xf86_crtc->nparams);
1022 xf86_crtc->x + extents.x1, xf86_crtc->y + extents.y1,
1064 radeon_scanout_update(xf86CrtcPtr xf86_crtc)
1066 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
1067 ScrnInfoPtr scrn = xf86_crtc->scrn;
1074 if (!xf86_crtc->enabled ||
1089 if (!radeon_scanout_extents_intersect(xf86_crtc, &extents)) {
1094 drm_queue_seq = radeon_drm_queue_alloc(xf86_crtc,
1104 radeon_scanout_update_handler(xf86_crtc, 0, 0, drmmode_crtc);
1110 if (!drmmode_wait_vblank(xf86_crtc, DRM_VBLANK_RELATIVE | DRM_VBLANK_EVENT,
1123 radeon_drm_queue_handle_deferred(xf86_crtc);
1132 xf86_crtc->funcs->set_mode_major(xf86_crtc, &xf86_crtc->mode,
1133 xf86_crtc->rotation,
1134 xf86_crtc->x, xf86_crtc->y);
1142 xf86CrtcPtr xf86_crtc)
1144 drmmode_crtc_private_ptr drmmode_crtc = xf86_crtc->driver_private;
1146 ScrnInfoPtr scrn = xf86_crtc->scrn;
1158 if (!radeon_scanout_do_update(xf86_crtc, scanout_id,
1173 drm_queue_seq = radeon_drm_queue_alloc(xf86_crtc,
1198 radeon_scanout_update(xf86_crtc);