diff options
author | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-10-04 14:39:06 +0200 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2018-10-08 16:58:13 +0300 |
commit | 9aecda27ffda312e4ecb3b85342da335e38f6538 (patch) | |
tree | 1176d261a33c1dbeec139bc47281170709e69177 /tools/intel_reg.c | |
parent | c5262919126a7125b5db6431b4bba2955a13a020 (diff) |
chamelium: Change our pattern for a custom one if needed
The current pattern being used is the one generated through the
igt_create_color_pattern_fb.
However, in order to deal with multiple formats and the upsampling /
downsampling issues that might arise from converting back and forth between
formats, we will need to have a pattern with quite precise color values,
and without any shades or gradient of colors.
Let's create a function that will generate that pattern in the chamelium
code if we need to convert the framebuffer to a smaller depth, and use the
current pattern otherwise.
The easiest way to do that will be to only use values that would have the
same part on the common most significant bits (5, to deal with most
formats) and have the same bit repeated on the least significant bits that
are going to be dropped and / or padded when converting between formats.
Pixman will fill the lowest bits with 1, and our hardware (this has been
tested on a Raspberry Pi's VC4) is able to support that, so the easiest is
to just use all 1's for our components in order to still be able to compute
the CRCs.
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tools/intel_reg.c')
0 files changed, 0 insertions, 0 deletions