projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c31a4c
)
compositor-drm: Disable hw cursor if allocation fails
author
Kristian Høgsberg
<krh@bitplanet.net>
Sun, 21 Oct 2012 17:29:26 +0000
(13:29 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Sun, 21 Oct 2012 17:29:26 +0000
(13:29 -0400)
Instead of crashing later, we can just fall back to gl rendered cursors.
src/compositor-drm.c
patch
|
blob
|
history
diff --git
a/src/compositor-drm.c
b/src/compositor-drm.c
index
78ad35d
..
a2169dd
100644
(file)
--- a/
src/compositor-drm.c
+++ b/
src/compositor-drm.c
@@
-1466,6
+1466,10
@@
create_output_for_connector(struct drm_compositor *ec,
output->cursor_bo[1] =
gbm_bo_create(ec->gbm, 64, 64, GBM_FORMAT_ARGB8888,
GBM_BO_USE_CURSOR_64X64 | GBM_BO_USE_WRITE);
+ if (output->cursor_bo[0] == NULL || output->cursor_bo[1] == NULL) {
+ weston_log("cursor buffers unavailable, using gl cursors\n");
+ ec->cursors_are_broken = 1;
+ }
output->backlight = backlight_init(drm_device,
connector->connector_type);