Lines Matching defs:crtc
159 adaptor_priv->desired_crtc = xf86_config->crtc[value];
198 xf86CrtcPtr crtc,
227 request.crtc_id = intel_crtc_id(crtc);
276 intel_update_dst_box_to_crtc_coords(ScrnInfoPtr scrn, xf86CrtcPtr crtc,
281 /* for overlay, we should take it from crtc's screen
282 * coordinate to current crtc's display mode.
285 switch (crtc->rotation & 0xf) {
287 dstBox->x1 -= crtc->x;
288 dstBox->x2 -= crtc->x;
289 dstBox->y1 -= crtc->y;
290 dstBox->y2 -= crtc->y;
294 dstBox->x1 = dstBox->y1 - crtc->x;
295 dstBox->y1 = scrn->virtualX - tmp - crtc->y;
297 dstBox->x2 = dstBox->y2 - crtc->x;
298 dstBox->y2 = scrn->virtualX - tmp - crtc->y;
305 dstBox->x1 = scrn->virtualX - dstBox->x2 - crtc->x;
306 dstBox->x2 = scrn->virtualX - tmp - crtc->x;
308 dstBox->y1 = scrn->virtualY - dstBox->y2 - crtc->y;
309 dstBox->y2 = scrn->virtualY - tmp - crtc->y;
313 dstBox->x1 = scrn->virtualY - dstBox->y1 - crtc->x;
314 dstBox->y1 = tmp - crtc->y;
316 dstBox->x2 = scrn->virtualY - dstBox->y2 - crtc->x;
317 dstBox->y2 = tmp - crtc->y;
328 intel_video_overlay_display(ScrnInfoPtr scrn, xf86CrtcPtr crtc,
341 * If the video isn't visible on any CRTC, turn it off
343 if (!crtc) {
348 intel_update_dst_box_to_crtc_coords(scrn, crtc, dstBox);
350 if (crtc->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
362 return intel_overlay_put_image(intel, crtc, id,
382 xf86CrtcPtr crtc;
402 &crtc,
412 if (crtc)
413 adaptor_priv->rotation = crtc->rotation;
416 "Fail to clip video to any crtc!\n");
426 (scrn, crtc, id, width, height, dstPitch, dstPitch2,