wlroots-hyprland/backend
Anthony Super e22a386319 Add error handling to backend creation
This commit adds two error-handling cases to the function
attempt_dmr_backend. Specifically:

- In the case where the number of found GPUs is zero, we now
  print a log message indicating this and return a NULL pointer
- In the case where we could not successfully create a backend
  on any GPU, we now log a message indicating this and return
  a NULL pointer

This allows us to provide more descriptive error messages,
as well as avoid a SEGFAULT (the function
`ensure_primary_backend_renderer_and_allocator` dereferences the pointer
given, which could be NULL until this patch) when these cases arise.
2021-10-18 14:36:04 +02:00
..
drm output: add presented flag to presentation event 2021-10-15 09:38:58 +02:00
headless output: add presented flag to presentation event 2021-10-15 09:38:58 +02:00
libinput backend/libinput: send hold gesture events 2021-09-27 15:30:31 +02:00
multi backend: introduce wlr_backend_finish 2021-05-21 22:13:54 +02:00
noop backend/noop: drop attach_render/rollback_render 2021-07-29 09:48:33 -04:00
session backend/session: use DRM_PRIMARY_MINOR_NAME 2021-06-17 00:28:04 +02:00
wayland output: add presented flag to presentation event 2021-10-15 09:38:58 +02:00
x11 output: add presented flag to presentation event 2021-10-15 09:38:58 +02:00
backend.c Add error handling to backend creation 2021-10-18 14:36:04 +02:00
meson.build backend: make DRM and libinput backends optional 2021-07-22 09:56:38 -04:00