aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-13 14:19:42 +0200
committerSimon Ser <contact@emersion.fr>2021-07-28 22:52:35 +0200
commitebb661532c57bf5c44301b03602abd2cd30f794f (patch)
tree0bc7e9030ac20fecd55a66d11b2ef69b43886c1f /backend/drm
parentf5900c1f00f86078f576f5367f6cd707fdeec8c3 (diff)
backend/drm: remove SCANOUT check in drm_connector_test
We only accept SCANOUT, the buffer type should never be set to RENDER.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c3
-rw-r--r--backend/drm/legacy.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 54b225a0..1218fa9d 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -466,8 +466,7 @@ static bool drm_connector_test(struct wlr_output *output) {
}
}
- if ((output->pending.committed & WLR_OUTPUT_STATE_BUFFER) &&
- output->pending.buffer_type == WLR_OUTPUT_STATE_BUFFER_SCANOUT) {
+ if ((output->pending.committed & WLR_OUTPUT_STATE_BUFFER) && !conn->backend->parent) {
if (!drm_connector_set_pending_fb(conn, &output->pending)) {
return false;
}
diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c
index 4750c1ce..daeeb8dd 100644
--- a/backend/drm/legacy.c
+++ b/backend/drm/legacy.c
@@ -36,7 +36,6 @@ static bool legacy_crtc_test(struct wlr_drm_connector *conn,
struct wlr_drm_crtc *crtc = conn->crtc;
if ((state->committed & WLR_OUTPUT_STATE_BUFFER) &&
- state->buffer_type == WLR_OUTPUT_STATE_BUFFER_SCANOUT &&
!drm_connector_state_is_modeset(state)) {
struct wlr_drm_fb *pending_fb = crtc->primary->pending_fb;