Skip to content

Commit fd218bd

Browse files
committed
golfish_gpu_fb: clear fb when initialization
1 parent 3c1086a commit fd218bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/video/goldfish_gpu_fb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,10 @@ int goldfish_gpu_fb_register(int display)
563563
fb->vtable.getplaneinfo = goldfish_gpu_fb_getplaneinfo;
564564
fb->vtable.getvideoinfo = goldfish_gpu_fb_getvideoinfo;
565565

566+
/* Clear goldfish_gpu_fb */
567+
568+
goldfish_gpu_fb_commit(fb, fb->planeinfo.fbmem);
569+
566570
/* Create the vsync thread */
567571

568572
snprintf(arg1, 32, "%p", fb);

0 commit comments

Comments
 (0)