Skip to content

Commit 8fc7036

Browse files
committed
drm/msm/dpu: fix BGR565 vs RGB565 confusion
The component order between the two was swapped, resulting in incorrect color when games with 565 visual hit the overlay path instead of GPU composition. Fixes: 25fdd59 ("drm/msm: Add SDM845 DPU support") Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Sean Paul <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent c665978 commit 8fc7036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,13 @@ static const struct dpu_format dpu_format_map[] = {
255255

256256
INTERLEAVED_RGB_FMT(RGB565,
257257
0, COLOR_5BIT, COLOR_6BIT, COLOR_5BIT,
258-
C2_R_Cr, C0_G_Y, C1_B_Cb, 0, 3,
258+
C1_B_Cb, C0_G_Y, C2_R_Cr, 0, 3,
259259
false, 2, 0,
260260
DPU_FETCH_LINEAR, 1),
261261

262262
INTERLEAVED_RGB_FMT(BGR565,
263263
0, COLOR_5BIT, COLOR_6BIT, COLOR_5BIT,
264-
C1_B_Cb, C0_G_Y, C2_R_Cr, 0, 3,
264+
C2_R_Cr, C0_G_Y, C1_B_Cb, 0, 3,
265265
false, 2, 0,
266266
DPU_FETCH_LINEAR, 1),
267267

0 commit comments

Comments
 (0)