osd: reset afbcd flag when convert format value [1/1]
authorJian Cao <jian.cao@amlogic.com>
Fri, 15 Mar 2019 09:21:08 +0000 (17:21 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 21 Mar 2019 08:30:31 +0000 (01:30 -0700)
PD#SWPL-5185

Problem:
"fence color format error 28" when test weston-simple-egl

Solution:
reset afbcd flag when convert format value

Verify:
Locally on g12b_w400

Change-Id: I81a9394288026bc596f6b3438cec72ceaad7749f
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
drivers/amlogic/media/osd/osd_hw.c

index 7b0f68e..6923a57 100644 (file)
@@ -9702,6 +9702,7 @@ static const struct color_bit_define_s *convert_panel_format(u32 format)
 {
        const struct color_bit_define_s *color = NULL;
 
+       format &= ~AFBC_EN;
        switch (format) {
        case COLOR_INDEX_02_PAL4:
        case COLOR_INDEX_04_PAL16: