diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-08 10:24:34 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-08 10:24:34 +0000 |
commit | 7577d6ea45794b83d2f84b175d453d8a460b0e9b (patch) | |
tree | 972dd37ad89c463124f6e3400bf41286d0df57b6 | |
parent | 33256af40b3ce2cf8a899ced1fcbf40e316772e4 (diff) |
sna: Add some error messages to explain why we failed to create the screen
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_driver.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index 9e493614..98819f6d 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -192,21 +192,40 @@ static Bool sna_create_screen_resources(ScreenPtr screen) screen->height, screen->rootDepth, SNA_CREATE_FB); - if (!sna->front) + if (!sna->front) { + xf86DrvMsg(screen->myNum, X_ERROR, + "[intel] Unable to create front buffer %dx%d at depth %d\n", + screen->width, + screen->height, + screen->rootDepth); + return FALSE; + } - if (!sna_pixmap_force_to_gpu(sna->front)) + if (!sna_pixmap_force_to_gpu(sna->front)) { + xf86DrvMsg(screen->myNum, X_ERROR, + "[intel] Failed to allocate video resources for front buffer %dx%d at depth %d\n", + screen->width, + screen->height, + screen->rootDepth); goto cleanup_front; + } screen->SetScreenPixmap(sna->front); - if (!sna_accel_create(sna)) + if (!sna_accel_create(sna)) { + xf86DrvMsg(screen->myNum, X_ERROR, + "[intel] Failed to initialise acceleration routines\n"); goto cleanup_front; + } sna_copy_fbcon(sna); - if (!sna_enter_vt(screen->myNum, 0)) + if (!sna_enter_vt(screen->myNum, 0)) { + xf86DrvMsg(screen->myNum, X_ERROR, + "[intel] Failed to become DRM master\n"); goto cleanup_front; + } return TRUE; |