[PATCH] hw/xfree86: Only report SetDesiredModes() failed if at least one modeset fails
Keith Packard
keithp at keithp.com
Mon Apr 29 09:11:41 PDT 2013
Chris Wilson <chris at chris-wilson.co.uk> writes:
> On Wed, Jan 09, 2013 at 10:33:34PM -0800, Keith Packard wrote:
>> Chris Wilson <chris at chris-wilson.co.uk> writes:
>>
>> > commit 6703a7c7cf1a349c137e247a0c8eb462ff7b07be
>> > Author: Keith Packard <keithp at keithp.com>
>> > Date: Tue Jan 8 20:24:32 2013 -0800
>> >
>> > hw/xfree86: Require only one working CRTC to start the server.
>> >
>> > changed the logic to try to set the mode on all connected outputs rather
>> > than abort upon the first failure. The return error code was then
>> > tweaked such that it reported success if it set a mode on any crtc.
>> > However, this confuses the headless case where we never enable any crtcs
>> > and also, importantly, never fail to set a crtc.
>>
>> Oops. Nice catch. So, we fail only if there are outputs and none have
>> managed to be configured.
>>
>> Reviewed-by: Keith Packard <keithp at keithp.com>
>
> Oops, missed my sob,
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
>
> Perhaps also credit Maarten for creating exactly the same patch:
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
I've marked this as 'Also-written-by: Maarten' :-)
Merged.
7ab98ba..451ba4b master -> master
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20130429/10294020/attachment.pgp>
More information about the xorg-devel
mailing list