summaryrefslogtreecommitdiff
path: root/src/intel_module.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-23 10:53:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-23 11:04:54 +0100
commitd6830190bc9956f485db6c3420f7a4a79793a693 (patch)
tree8ef1f73549f4d9cf14aada566177d5b12a0a8402 /src/intel_module.c
parent70868c7aa881b15b7478f7ee4543fde0268a4ba6 (diff)
sna: Disable all outputs when initializing as a slaved output provider
When we are constructed as a slaved device, we need to disable all outputs or else they are not correctly hooked into the master device upon startup. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_module.c')
-rw-r--r--src/intel_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_module.c b/src/intel_module.c
index c8846032..969f2a7f 100644
--- a/src/intel_module.c
+++ b/src/intel_module.c
@@ -543,7 +543,7 @@ intel_scrn_create(DriverPtr driver,
scrn->driverVersion = INTEL_VERSION;
scrn->driverName = (char *)INTEL_DRIVER_NAME;
scrn->name = (char *)INTEL_NAME;
- scrn->driverPrivate = (void *)(match_data | 1);
+ scrn->driverPrivate = (void *)(match_data | (flags & XF86_ALLOCATE_GPU_SCREEN) | 2);
scrn->Probe = NULL;
if (xf86IsEntitySharable(entity_num))