From 347728fcd178106295cd2d9b982ea192bd2d66c7 Mon Sep 17 00:00:00 2001 From: jianglianfang Date: Thu, 21 Nov 2024 15:03:07 +0800 Subject: [PATCH] golfish_gpu_fb: clear fb when initialization --- drivers/video/goldfish_gpu_fb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/goldfish_gpu_fb.c b/drivers/video/goldfish_gpu_fb.c index 0457189c036..9c3bcc88faa 100644 --- a/drivers/video/goldfish_gpu_fb.c +++ b/drivers/video/goldfish_gpu_fb.c @@ -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);