Skip to content
  • Uma Shankar's avatar
    tests/kms_color: Fix CRC mismatch issues with ctm test · 64d0ff72
    Uma Shankar authored
    Due to Gamma/Degamma limitation wrt representation of intermediate
    values between 0 and 1.0 causing rounding issues and inaccuracies,
    applying linear gamma affects crc. This patch fixes the same by
    making ctm max test independent of gamma/degamma.
    
    v2: Disable degamma/gamma programming for ctm max test as it
    leads to crc mimsmatch. Limiting it to this test case alone as
    other tests need it to be enabled, hence not touching those
    scenarios.
    
    v3: Fixed a fumble with compilation.
    
    v4: Disabling degamma and gamma for ctm max tests, after the logic
    in kernel has been updated by Ville's series.
    
    v5: Disabled gamma/degamma for all ctm tests as suggested by Ville.
    
    v6: Restricting disabling of linear gamma luts for ctm max test.
    Updated the commit message and comment as suggested by Daniel.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108147
    
    
    Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
    Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    64d0ff72