summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/disp/dpu1
diff options
context:
space:
mode:
authorTanmay Shah2018-12-18 00:34:09 +0100
committerSean Paul2019-02-01 16:35:55 +0100
commit7f0bf1c09f3c8763a9807f66dcf4c7adad0ce7ff (patch)
tree4ed0a287fa117b61c50c22574e5f5077d1827a45 /drivers/gpu/drm/msm/disp/dpu1
parentdrm/msm/dpu: Clean up dpu hw interrupts (diff)
downloadkernel-qcow2-linux-7f0bf1c09f3c8763a9807f66dcf4c7adad0ce7ff.tar.gz
kernel-qcow2-linux-7f0bf1c09f3c8763a9807f66dcf4c7adad0ce7ff.tar.xz
kernel-qcow2-linux-7f0bf1c09f3c8763a9807f66dcf4c7adad0ce7ff.zip
drm/msm/dpu: Change definition of RGB565 and BGR565
Correct definition of both formats by swapping red and blue channels v3: update commit message Signed-off-by: Tanmay Shah <tanmay@codeaurora.org> Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/disp/dpu1')
-rw-r--r--drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
index d53abc8ce670..f59fe1a9f4b9 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
@@ -263,13 +263,13 @@ static const struct dpu_format dpu_format_map[] = {
INTERLEAVED_RGB_FMT(RGB565,
0, COLOR_5BIT, COLOR_6BIT, COLOR_5BIT,
- C1_B_Cb, C0_G_Y, C2_R_Cr, 0, 3,
+ C2_R_Cr, C0_G_Y, C1_B_Cb, 0, 3,
false, 2, 0,
DPU_FETCH_LINEAR, 1),
INTERLEAVED_RGB_FMT(BGR565,
0, COLOR_5BIT, COLOR_6BIT, COLOR_5BIT,
- C2_R_Cr, C0_G_Y, C1_B_Cb, 0, 3,
+ C1_B_Cb, C0_G_Y, C2_R_Cr, 0, 3,
false, 2, 0,
DPU_FETCH_LINEAR, 1),