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) &&
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;
}