mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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:
parent
5f092c55d1
commit
50ade3671f
3 changed files with 32 additions and 16 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue