aboutsummaryrefslogtreecommitdiff
path: root/render/gles2
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-29 09:49:24 +0200
committerSimon Ser <contact@emersion.fr>2021-04-29 15:58:56 +0200
commite7f68ba0811f975faa8ce06d3caf4d2e5cb87be5 (patch)
tree7ac0aeac753e9e7510e543aa83a1cb440809e5a3 /render/gles2
parent5be76bb047f7260882ba7930eebfe709950536ee (diff)
backend/drm: fix allocator DRM FD on multi-GPU setups
On multi-GPU setups, there is a primary DRM backend and secondary DRM backends. wlr_backend_get_drm_fd will always return the parent DRM FD even on secondary backends, so that users always use the primary device for rendering. However, for our internal rendering we want to use the secondary device. Use allocator_autocreate_with_drm_fd to make sure the allocator will create buffers on the secondary device. We do something similar to ensure our internal rendering will happen on the secondary device with renderer_autocreate_with_drm_fd. Fixes: cc1b66364cc9 ("backend: use wlr_allocator_autocreate")
Diffstat (limited to 'render/gles2')
0 files changed, 0 insertions, 0 deletions