• Arkadiusz Hiler's avatar
    tests/kms_plane: Print count of mismatched colors · 356b9409
    Arkadiusz Hiler authored
    Currently we are printing one igt_warn for each CRC mismatch, which gets
    quite overwhelming with having to see the same error 8 times for each
    color tested:
    
    WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
    WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
    WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
    WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
    WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
    WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
    WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
    WARNING: CRC mismatch with format NV12 (0x3231564e) on A.3
    
    Since the most interesting information here is which format on which
    pipe/plane is broken we can skip igt_warn just once.
    
    For those weirder and rarer case where just certain colors would fail we
    still provide the count and the mask of color array indices that failed:
    
    WARNING: CRC mismatches with format NV12 (0x3231564e) on A.3 with 8/8 solid colors tested (0xFF)
    
    v2 (Petri): Print a mask so it's possible to know which colors failed.
    
    Cc: Martin Peres <martin.peres@linux.intel.com>
    Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
    Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
    Reviewed-by: 's avatarMartin Peres <martin.peres@linux.intel.com>
    Signed-off-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
    Acked-by: Dhinakaran Pandiyan's avatarDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
    356b9409
Name
Last commit
Last update
assembler Loading commit data...
benchmarks Loading commit data...
debugger Loading commit data...
docs Loading commit data...
include/drm-uapi Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
overlay Loading commit data...
runner Loading commit data...
scripts Loading commit data...
tests Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
Dockerfile.debian Loading commit data...
Dockerfile.debian-arm64 Loading commit data...
Dockerfile.debian-armhf Loading commit data...
Dockerfile.fedora Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
TODO.rst Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
meson-cross-arm64.txt Loading commit data...
meson-cross-armhf.txt Loading commit data...
meson.build Loading commit data...
meson.sh Loading commit data...
meson_options.txt Loading commit data...