[PATCH 19/36] dix: add ability to link output slave gpus to the current gpu

Dave Airlie airlied at gmail.com
Tue Jul 3 02:56:29 PDT 2012


On Tue, Jul 3, 2012 at 12:41 AM, Keith Packard <keithp at keithp.com> wrote:
>
> Dave Airlie <airlied at gmail.com> writes:
>
>> +void
>> +AttachOutputGPU(ScreenPtr pScreen, ScreenPtr new)
>> +{
>> +    assert(new->isGPU);
>> +    xorg_list_add(&new->output_head, &pScreen->output_slave_list);
>> +    new->current_master = pScreen;
>> +}
>
> I'd love an assert that new isn't already on a list somehow?

I'm not really sure you can tell that, since list members don't have
to make sense
by default,

I could add
assert(!new->current_master);
which should be true.

Dave.


More information about the xorg-devel mailing list