mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-21 12:25:59 +01:00
backend/drm: Skip multi-gpu outputs in backend tests
Our multi-gpu path currently needs to blit a buffer in order to have a primaryfb to add to the commit. This is expensive, and we skip it entirely during test commits. This in turn also means that we skip tests commits entirely for such outputs, outside our own basic tests. Backend-wide commits missed this check, and tried to perform test commits for multi-gpu outputs despite no primaryfb having been attached, making them always fail. Add the same exception as we have in the per-connector commit-test.
This commit is contained in:
parent
172c8add7d
commit
9c1930d462
1 changed files with 7 additions and 0 deletions
|
@ -1923,6 +1923,13 @@ bool commit_drm_device(struct wlr_drm_backend *drm,
|
|||
modeset |= output_state->base.allow_reconfiguration;
|
||||
}
|
||||
|
||||
if (test_only && drm->parent) {
|
||||
// If we're running as a secondary GPU, we can't perform an atomic
|
||||
// commit without blitting a buffer.
|
||||
ok = true;
|
||||
goto out;
|
||||
}
|
||||
|
||||
uint32_t flags = 0;
|
||||
if (!test_only) {
|
||||
flags |= DRM_MODE_PAGE_FLIP_EVENT;
|
||||
|
|
Loading…
Reference in a new issue