output: check for buffer size compatibility in common code

Instead of checking for buffer size compatibility in each backend,
centralize the check in wlr_output itself.
This commit is contained in:
Simon Ser 2020-04-10 14:54:33 +02:00 committed by Drew DeVault
parent 5f092c55d1
commit 50ade3671f
3 changed files with 32 additions and 16 deletions

View file

@ -365,9 +365,6 @@ static bool test_buffer(struct wlr_drm_connector *conn,
if (attribs.flags != 0) {
return false;
}
if (attribs.width != output->width || attribs.height != output->height) {
return false;
}
if (!wlr_drm_format_set_has(&crtc->primary->formats,
attribs.format, attribs.modifier)) {