tests: relax color comparisons


Running on paravirtualized Metal, the color space conversion can have
rounding errors of 1 bit in the luma channel and up to 3 bits in the
chroma channel. So we relax the color comparison to take this into
account.

Pick-to: 6.12
Fixes: QTBUG-150172
Change-Id: I4a77d145f55f212e87e88c035b7a779c7951fe6d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Mikko Hallamaa <mikko.hallamaa@qt.io>
commite069291097c0228a31fd88a556fca9944e1efc27
parentcab0b13e2e6284ecae83543c20ff73c646e82cbd
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeFri, 11 Sep 2026 14:39:28 +0000