miext/sync: Fix multi-screen support in SyncFence initialization
authorKeith Packard <keithp@keithp.com>
Wed, 24 Apr 2013 21:58:27 +0000 (14:58 -0700)
committerAdam Jackson <ajax@redhat.com>
Tue, 10 Sep 2013 17:26:25 +0000 (13:26 -0400)
commitf37972f4a67b49ba9649310a6778bd1bf31e0130
tree6cea8456368ff5806549f40586c4dd69e621abf9
parent1c8beedfe4343377fa3504f8ab71430cc137b22c
miext/sync: Fix multi-screen support in SyncFence initialization

miSyncSetup was checking to see if the screen private key had been
registered, and if so, skipping the setup of the provided screen.

Instead, it should register the private index only once, but then
initialize the screen unless it has already been initialized. This
latter step allows drivers to initialize the sync private structures
before the Sync extension itself is initialized.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
miext/sync/misync.c