On 01/25/2015 01:29 AM, Chris Wilson wrote:
On Sat, Jan 24, 2015 at 05:08:13PM -0800, Aaron Plattner wrote:
Don't bother creating RandR outputs or creating or validating modes.
Instead, just invent a dummy DisplayModeRec for the current screen
size.

Plug in a RandR framebuffer resize hook to allow resizing the screen.
Update the screen pixmap, ScrnInfo structure, and dummy mode when that
happens.

Dispense with the pScrn->videoRam field.  Instead, use the Virtual
size from the Display subsection of the Screen section.  If that's not
set, default to something reasonable by today's standards.

Does that xf86ValidateModes() use pScrn->videoRam to check that the mode
scanline fits within RAM matter here? Or is there no validate step in
the dummy RandR driver at all?

xf86ValidateModes does look at videoRam, but this patch removes the only call to it in -dummy.

-- Aaron
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to