From d4ca1953189d39741bcce659da0d6adcc548ab71 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 24 Aug 2013 15:09:06 +0100 Subject: [PATCH] sna: Fix reversed logic and loss of trust in the host The test for a hosted Xserver was backwards in commit 306c72cffbd8cd88e93871ee21fa85101198c1ac Author: Chris Wilson 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 --- src/sna/sna_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index dfd5b3eb..1c98c87c 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -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: