sna: Fix scanout creation routine for old kernels <= 3.11
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Jun 2014 14:29:59 +0000 (15:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Jun 2014 14:43:01 +0000 (15:43 +0100)
commitc9003c6d9602dba682e577ea7ce39990ea378db3
tree41dd876ff93bf6e5acb2945696722f9e0eadbbe1
parent5705e66a329273c478f6ecd8f41b8f5633095581
sna: Fix scanout creation routine for old kernels <= 3.11

With an old kernel, we would fail to actually mark the display as part
of the scanout domain, but proceed to assign it a fb id. This caused our
asserts to report our bookkeeping error.

Reported-by: Pavel Ondračka <pavel.ondracka@email.cz>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79909
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/kgem.c