Skip to content
  • Arkadiusz Hiler's avatar
    tests/kms_plane: Print count of mismatched colors · 356b9409
    Arkadiusz Hiler authored and Petri Latvala's avatar Petri Latvala committed
    
    
    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: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
    Reviewed-by: default avatarMartin Peres <martin.peres@linux.intel.com>
    Signed-off-by: default avatarPetri Latvala <petri.latvala@intel.com>
    Acked-by: default avatarDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
    356b9409