* [PATCH] drm: writeback: Document behaviour for framebuffer size mismatch
@ 2026-06-01 19:57 Derek Foreman
0 siblings, 0 replies; only message in thread
From: Derek Foreman @ 2026-06-01 19:57 UTC (permalink / raw)
To: dri-devel
Cc: kernel, Derek Foreman, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter
Currently we have not explicitly defined the behaviour when the width
and height of the writeback framebuffer do not match the width and
height of the attached CRTC.
Allow the driver to perform a scale operation to fit the content, so
systems with scaling blocks in the writeback path can easily expose them.
Failure remains an option for all the systems that don't have a scaler.
Cropping would make less sense, as the region to crop is underspecified
without some other properties to define an origin.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
---
I have a draft merge request against weston for this at:
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/2071
drivers/gpu/drm/drm_writeback.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/drm_writeback.c b/drivers/gpu/drm/drm_writeback.c
index 4da5d6094721..735a3cdff79a 100644
--- a/drivers/gpu/drm/drm_writeback.c
+++ b/drivers/gpu/drm/drm_writeback.c
@@ -58,6 +58,9 @@
* framebuffer to be written by the writeback connector. This property is
* similar to the FB_ID property on planes, but will always read as zero
* and is not preserved across commits.
+ * If the width and height of the framebuffer do not match those of the
+ * attached CRTC, the driver may either fail or scale (not crop) the
+ * content to fit the framebuffer.
* Userspace must set this property to an output buffer every time it
* wishes the buffer to get filled.
*
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-01 19:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-01 19:57 [PATCH] drm: writeback: Document behaviour for framebuffer size mismatch Derek Foreman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox