[PATCH xf86-video-dummy 6/6] Support RandR 1.2

Aaron Plattner aplattner at nvidia.com
Mon Jan 26 15:16:10 PST 2015


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


More information about the xorg-devel mailing list