[PATCH 1/1] video: show 'physical' frame buffer on sandbox

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Fri May 1 17:16:12 CEST 2026


We allow using double buffering for video. This can be accomplished by
cyclic copies or we may copy 'damaged' areas.

To inspect the output we must inspect the target frame buffer that models
the physical frame buffer on the sandbox.

If double buffering is active, priv->copy_fb is a pointer to the target
frame buffer.

Fixes: 5c8dddadf1c9 ("video: Use cyclic to handle video sync")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 drivers/video/video-uclass.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index 228d6bacc58..c178027fec4 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -516,8 +516,7 @@ int video_sync(struct udevice *vid, bool force)
 		video_flush_dcache(vid, true);
 
 #if defined(CONFIG_VIDEO_SANDBOX_SDL)
-	/* to see the copy framebuffer, use priv->copy_fb */
-	sandbox_sdl_sync(priv->fb);
+	sandbox_sdl_sync(priv->copy_fb ? priv->copy_fb : priv->fb);
 #endif
 	priv->last_sync = get_timer(0);
 
-- 
2.53.0



More information about the U-Boot mailing list