All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/doc: document front-buffer rendering
@ 2025-04-14  8:56 Simon Ser
  2025-04-14 11:06 ` Pekka Paalanen
  2025-04-14 13:28 ` Ville Syrjälä
  0 siblings, 2 replies; 9+ messages in thread
From: Simon Ser @ 2025-04-14  8:56 UTC (permalink / raw)
  To: dri-devel; +Cc: Pekka Paalanen, Simona Vetter

Explain how to perform front-buffer rendering.

v2: apply Pekka's rewrite

Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Pekka Paalanen <pekka.paalanen@collabora.com>
Cc: Simona Vetter <simona.vetter@ffwll.ch>
---
 drivers/gpu/drm/drm_blend.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c
index 6e74de833466..4e83f372ea51 100644
--- a/drivers/gpu/drm/drm_blend.c
+++ b/drivers/gpu/drm/drm_blend.c
@@ -75,6 +75,12 @@
  * 	the currently visible vertical area of the &drm_crtc.
  * FB_ID:
  * 	Mode object ID of the &drm_framebuffer this plane should scan out.
+ *
+ *	When a KMS client is perfoming front-buffer rendering, it should set
+ *	FB_ID to the same front-buffer FB on each atomic commit. This implies
+ *	to the driver that it needs to re-read the same FB again. Otherwise
+ *	drivers which do not employ continuously repeated scanout cycles might
+ *	not update the screen.
  * CRTC_ID:
  * 	Mode object ID of the &drm_crtc this plane should be connected to.
  *
-- 
2.49.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-05-06 13:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14  8:56 [PATCH v2] drm/doc: document front-buffer rendering Simon Ser
2025-04-14 11:06 ` Pekka Paalanen
2025-04-17 15:19   ` Simon Ser
2025-04-22 11:05     ` Pekka Paalanen
2025-04-30 21:37       ` Simon Ser
2025-04-14 13:28 ` Ville Syrjälä
2025-04-14 14:51   ` Simona Vetter
2025-05-01 11:25   ` Simon Ser
2025-05-06 13:56     ` Ville Syrjälä

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.