sna: Fix reversed logic and loss of trust in the host

The test for a hosted Xserver was backwards in

commit 306c72cffb
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Aug 24 14:02:23 2013 +0100

    sna: Trust the preferred-depth returned by the host

so we failed to load the driver instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-08-24 15:09:06 +01:00
parent 3716345bf4
commit d4ca195318
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags)
case 16:
case 24:
case 30:
if ((sna->flags & SNA_IS_HOSTED) == 0 &&
if ((sna->flags & SNA_IS_HOSTED) ||
fb_supports_depth(fd, scrn->depth))
break;
default: