mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
Add new struct wlr_multi_gpu
For development to continue on systems (such as optimus laptops) that have multiple GPUs, we need a way to reference all of the renderers that have been created for devices in the system. A wlr_multi_gpu struct holds renderers coming from two different sources: 1. the primary renderer (given to us by the compositor) 2. drm sub backends, each of which has a renderer created for cross-GPU copies. This change provides a way to access all of these from the same place.
This commit is contained in:
parent
ed8961b309
commit
5a38cc57c8
7 changed files with 142 additions and 4 deletions
|
|
@ -32,4 +32,7 @@ bool wlr_multi_is_empty(struct wlr_backend *backend);
|
|||
void wlr_multi_for_each_backend(struct wlr_backend *backend,
|
||||
void (*callback)(struct wlr_backend *backend, void *data), void *data);
|
||||
|
||||
struct wlr_multi_gpu *wlr_multi_gpu_create(void);
|
||||
void wlr_multi_gpu_destroy(struct wlr_multi_gpu *multi_gpu);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue