diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-14 08:38:52 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-14 08:38:52 +0100 |
commit | 394978867edf3746c285491db6be41abfe325d87 (patch) | |
tree | 48db486c58fc50beec53fd679f62c6326531cd26 /src/sna/sna_driver.c | |
parent | 3d818c0a36919add462c05d01a64b297f693fa69 (diff) |
sna: Check that we successfully install the required hosting midlayer
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r-- | src/sna/sna_driver.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index c27deb6f..83a5bba5 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -430,6 +430,13 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags) goto cleanup; } + /* Sanity check */ + if (hosted() && (sna->flags & SNA_IS_HOSTED) == 0) { + xf86DrvMsg(scrn->scrnIndex, X_ERROR, + "Failed to setup hosted device.\n"); + goto cleanup; + } + preferred_depth = sna->info->gen < 030 ? 15 : 24; if (!fb_supports_depth(fd, preferred_depth)) preferred_depth = 24; |