xf86Crtc: add higher level modesetting entry point.
For kernel modesetting work we need a bigger stick to beat the modesetting path
This commit is contained in:
parent
dcc077c753
commit
d12b7b6632
|
@ -236,6 +236,9 @@ xf86CrtcSetMode (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotation,
|
|||
int saved_x, saved_y;
|
||||
Rotation saved_rotation;
|
||||
|
||||
if (crtc->funcs->set_mode_major)
|
||||
return crtc->funcs->set_mode_major(crtc, mode, rotation, x, y);
|
||||
|
||||
crtc->enabled = xf86CrtcInUse (crtc);
|
||||
|
||||
if (!crtc->enabled)
|
||||
|
|
|
@ -206,6 +206,13 @@ typedef struct _xf86CrtcFuncs {
|
|||
*/
|
||||
void
|
||||
(*destroy) (xf86CrtcPtr crtc);
|
||||
|
||||
/**
|
||||
* Less fine-grained mode setting entry point for kernel modesetting
|
||||
*/
|
||||
Bool
|
||||
(*set_mode_major)(xf86CrtcPtr crtc, DisplayModePtr mode,
|
||||
Rotation rotation, int x, int y);
|
||||
} xf86CrtcFuncsRec, *xf86CrtcFuncsPtr;
|
||||
|
||||
struct _xf86Crtc {
|
||||
|
|
Loading…
Reference in New Issue
Block a user