diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-05-23 19:40:52 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-06-08 12:56:17 +0300 |
commit | 093fa482371795c3aa246509994eb21907f501b9 (patch) | |
tree | 1ae57439e4b1d965c5532e4efa4d0087109889e7 /lib/igt_audio.h | |
parent | a9a683e9e1094ba1fb195e6ea183b04d1968614f (diff) |
tests/kms_plane: crc check plane pixel formats
Insted of just trying out each pixel format once, let's try each one
with a set of colors (RGB,CMY,white,black). We'll grab a reference CRC
for each using XRGB8888, and then compare that with the CRC we get
with any other format.
We have to use a solid color fb because chroma subsampling would
generally prevent us from getting a match if we had any color
transitions in the fb contents.
We also abuse the legacy LUT to drop the precision down to 6 bits
so that still errors causes by the RGB<->YCbCr conversion end up
being ignored.
v2: don't set Broadcast RGB prop if it's not there
v3: Drop the Broadcast RGB prop since igt_kms already does it (Maarten)
v4: Don't check ARGB8888 twice on cursors
Add vblank wait after the commit to make sure we grab the crc
for the new fb
Don't turn the plane off between every check
Fix the commit message to say we keep only 6 msbs, 7 is too much
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> #v3
Diffstat (limited to 'lib/igt_audio.h')
0 files changed, 0 insertions, 0 deletions