do not enable cache in fbvideo.c for R818

This commit is contained in:
Vincent Wei
2021-06-07 10:53:26 +08:00
parent 08419c0c95
commit 0b47b83849

View File

@@ -421,7 +421,9 @@ static int FB_VideoInit(_THIS, GAL_PixelFormat *vformat)
(((long)finfo.smem_start)&~(getpagesize () - 1)));
mapped_memlen = finfo.smem_len+mapped_offset;
#if defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
#if 0
// XXX: DO NOT ENABLE CACHE HERE.
defined(__TARGET_R818__) && defined(_MGSCHEMA_COMPOSITING)
if (mgIsServer) {
uintptr_t args[2] = { 1, 0 };
if (ioctl(console_fd, FBIO_ENABLE_CACHE, args) < 0) {
@@ -1182,7 +1184,7 @@ static void FB_SavePalette(_THIS, struct fb_fix_screeninfo *finfo,
/* Allocate new identity colormap */
for (i=0; i<256; ++i) {
new_entries[(0*256)+i] =
new_entries[(0*256)+i] =
new_entries[(1*256)+i] =
new_entries[(2*256)+i] = (i<<8)|i;
}