backend/drm: remove SCANOUT check in drm_connector_test

We only accept SCANOUT, the buffer type should never be set to RENDER.
This commit is contained in:
Simon Ser 2021-06-13 14:19:42 +02:00
parent f5900c1f00
commit ebb661532c
2 changed files with 1 additions and 3 deletions

View file

@ -466,8 +466,7 @@ static bool drm_connector_test(struct wlr_output *output) {
} }
} }
if ((output->pending.committed & WLR_OUTPUT_STATE_BUFFER) && if ((output->pending.committed & WLR_OUTPUT_STATE_BUFFER) && !conn->backend->parent) {
output->pending.buffer_type == WLR_OUTPUT_STATE_BUFFER_SCANOUT) {
if (!drm_connector_set_pending_fb(conn, &output->pending)) { if (!drm_connector_set_pending_fb(conn, &output->pending)) {
return false; return false;
} }

View file

@ -36,7 +36,6 @@ static bool legacy_crtc_test(struct wlr_drm_connector *conn,
struct wlr_drm_crtc *crtc = conn->crtc; struct wlr_drm_crtc *crtc = conn->crtc;
if ((state->committed & WLR_OUTPUT_STATE_BUFFER) && if ((state->committed & WLR_OUTPUT_STATE_BUFFER) &&
state->buffer_type == WLR_OUTPUT_STATE_BUFFER_SCANOUT &&
!drm_connector_state_is_modeset(state)) { !drm_connector_state_is_modeset(state)) {
struct wlr_drm_fb *pending_fb = crtc->primary->pending_fb; struct wlr_drm_fb *pending_fb = crtc->primary->pending_fb;