[PATCH] xf86/crtc: return 0 in xf86CompatOutput when compat_output is < 0

Adam Jackson ajax at nwnk.net
Tue Oct 16 10:37:02 PDT 2012


On 10/8/12 1:48 PM, Keith Packard wrote:
> Maarten Lankhorst <maarten.lankhorst at canonical.com> writes:
>
>> Commit 37d956e3ac9513 initializes compat_output to -1, so
>> xf86CompatOutput would do config->output[-1] when not initialized.
>>
>> This happens in xf86OutputSetEDID for example, before compat_output is
>> set.
>
> Seems like compat_output should be set before xf86OutputSetEDID gets
> called then; otherwise I don't see how the right thing will happen at
> server startup time.

How are you going to know which output is the compat output before 
you've examined which outputs are connected?

- ajax



More information about the xorg-devel mailing list