35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
Correct DRM format on Powkiddy x55, extracted from PowKiddy x55 sources.
|
|
diff --git a/deps/libgo2/src/display.c b/deps/libgo2/src/display.c
|
|
index b91cf0624b..936b677fc4 100644
|
|
--- a/deps/libgo2/src/display.c
|
|
+++ b/deps/libgo2/src/display.c
|
|
@@ -550,7 +550,7 @@ static uint32_t go2_rkformat_get(uint32_t drm_fourcc)
|
|
|
|
case DRM_FORMAT_ARGB8888:
|
|
case DRM_FORMAT_XRGB8888:
|
|
- return RK_FORMAT_BGRA_8888;
|
|
+ return RK_FORMAT_RGBA_8888;
|
|
|
|
case DRM_FORMAT_RGB565:
|
|
return RK_FORMAT_RGB_565;
|
|
@@ -586,6 +586,7 @@ void go2_surface_blit(go2_surface_t* srcSurface, int srcX, int srcY, int srcWidt
|
|
dst.rect.hstride = dstSurface->height;
|
|
dst.rect.format = go2_rkformat_get(dstSurface->format);
|
|
|
|
+
|
|
rga_info_t src = { 0 };
|
|
src.fd = go2_surface_prime_fd(srcSurface);
|
|
src.mmuFlag = 1;
|
|
diff --git a/gfx/drivers_context/drm_go2_ctx.c b/gfx/drivers_context/drm_go2_ctx.c
|
|
index b758137703..dbcb992279 100644
|
|
--- a/gfx/drivers_context/drm_go2_ctx.c
|
|
+++ b/gfx/drivers_context/drm_go2_ctx.c
|
|
@@ -133,7 +133,7 @@ static void *gfx_ctx_go2_drm_init(void *video_driver)
|
|
}
|
|
|
|
drm->presenter = go2_presenter_create(drm->display,
|
|
- DRM_FORMAT_RGB565, 0xff000000, true);
|
|
+ DRM_FORMAT_XRGB8888, 0xff000000, true);
|
|
|
|
return drm;
|
|
}
|