mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
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 <anshumank@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1517747 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
870835a292
commit
d7d3025725
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user