golfish_gpu_fb: clear fb when initialization

Commit an initial blank frame during goldfish_gpu_fb_register() to
avoid rendering a stale frame from the emulator after reboot.

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
This commit is contained in:
jianglianfang
2026-05-22 17:18:13 +08:00
committed by Xiang Xiao
parent a8de4c998c
commit 94733dd17e
+4
View File
@@ -576,6 +576,10 @@ int goldfish_gpu_fb_register(int display)
fb->vtable.getplaneinfo = goldfish_gpu_fb_getplaneinfo;
fb->vtable.getvideoinfo = goldfish_gpu_fb_getvideoinfo;
/* Clear goldfish_gpu_fb */
goldfish_gpu_fb_commit(fb, fb->planeinfo.fbmem);
/* Create the vsync thread */
snprintf(arg1, 32, "%p", fb);