aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-04-10 14:54:33 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-10 15:52:20 +0200
commit50ade3671fb6776379b0923ca230e7105f25bbc2 (patch)
tree717790863165f4f8592ed1e2b7f8b82b0f3dead2 /backend/drm
parent5f092c55d1fbd244ceb73adb710aa0ce185a03ee (diff)
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.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 01da2d2c..9be67244 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -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)) {