backend/drm: remove SCANOUT check in drm_connector_test

We only accept SCANOUT, the buffer type should never be set to RENDER.
master
Simon Ser 3 years ago
parent f5900c1f00
commit ebb661532c

@ -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;
}

@ -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;

Loading…
Cancel
Save