From d7d30257259b878c4ab9fc5383d729ff3990acab Mon Sep 17 00:00:00 2001 From: Anshuman Kar Date: Wed, 12 Jul 2017 00:19:45 -0500 Subject: [PATCH] dc: add support for SW defined color formats Due to implementation of SW formats which extend the display color formats beyond 0xff, the format masks as well as the byteswap masks have to be updated. This change updates the following: - Marks all SW defined formats as starting from 0x100 - Shifts all the byte swap masks to start at 0x10000 - Updates the SW and byte swap masks - Updates the functions which classify yuv, planar and semi planar formats - Add the SW defined formats to the feature table listings - Add SWAP_UV for vertical chroma subsampled formats - Removes the SWAP UV flag - Add sanity checks for SW defined formats in the kernel Bug 1904472 Change-Id: I18f6cf69610e5bff206fa6b1336f63ee9a9a7424 Signed-off-by: Anshuman Kar Reviewed-on: https://git-master.nvidia.com/r/1517747 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/misc/mods/mods_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mods/mods_debugfs.c b/drivers/misc/mods/mods_debugfs.c index 4c5d4dcf..7f912998 100644 --- a/drivers/misc/mods/mods_debugfs.c +++ b/drivers/misc/mods/mods_debugfs.c @@ -55,7 +55,7 @@ static int mods_dc_color_formats_show(struct seq_file *s, void *unused) if (!fmt_masks) continue; seq_printf(s, "window_%u:", i); - for (j = 0; j < ENTRY_SIZE; j++) + for (j = 0; j < WIN_FEATURE_ENTRY_SIZE; j++) seq_printf(s, " 0x%08x", fmt_masks[j]); seq_puts(s, "\n"); }