Skip to contentSkip to conversation

video: bochs: Support a copy buffer

PATCH New Simon Glass 1 participant 1 message May 8 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: bochs: Support a copy buffer

Provide support for using CONFIG_VIDEO_COPY with bochs, since this can help to reduce flicker with QEMU

---

 drivers/video/bochs.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/video/bochs.c +5 -1
index c34bc23f274..57d7b8eb8c6 100644
@@ -81,7 +81,11 @@ static int bochs_init_fb(struct udevice *dev)
 	/* disable blanking */
 	bochs_vga_write(mmio, VGA_ATT_W - VGA_INDEX, VGA_AR_ENABLE_DISPLAY);
 
-	plat->base = fb;
+	/* Use double buffering if enabled */
+	if (IS_ENABLED(CONFIG_VIDEO_COPY) && plat->base)
+		plat->copy_base = fb;
+	else
+		plat->base = fb;
 
 	return 0;
 }

---
base-commit: 3cdd19089f1b1b7cd08530f33ff4708abcfd426c
branch: bosch-us

Signature · 1 line
2.43.0