mirror of
https://github.com/apache/nuttx.git
synced 2026-09-25 09:15:09 +08:00
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:
committed by
Xiang Xiao
parent
a8de4c998c
commit
94733dd17e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user