video: cfb_console: flush cache in display_rle8_bitmap
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Mon, 10 Sep 2018 07:58:58 +0000 (09:58 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 28 Sep 2018 16:27:58 +0000 (18:27 +0200)
Otherwise BMP RLE8 images are not properly displayed.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
drivers/video/cfb_console.c

index 40110668a6b41050cb33690b53aeddc5b1b4a706..636c3e8c184dac5d919a8ccf9efe1105b34cc96e 100644 (file)
@@ -1297,6 +1297,10 @@ next_run:
                        break;
                }
        }
+
+       if (cfb_do_flush_cache)
+               flush_cache(VIDEO_FB_ADRS, VIDEO_SIZE);
+
        return 0;
 error:
        printf("Error: Too much encoded pixel data, validate your bitmap\n");