Skip to content

Commit

Permalink
golfish_gpu_fb: clear fb when initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jianglianfang authored and xiaoxiang781216 committed Dec 26, 2024
1 parent 46ce04d commit 347728f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/video/goldfish_gpu_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,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);
Expand Down

0 comments on commit 347728f

Please sign in to comment.