summaryrefslogtreecommitdiff
path: root/tests/gem_gtt_speed.c
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2014-09-09 13:10:51 -0400
committerRodrigo Vivi <rodrigo.vivi@intel.com>2014-09-11 11:42:12 -0400
commit25aa69d0a00435432f85ee86b30a2981411fbbbb (patch)
tree04fbae93438e68be3ff4400c61a2098b9779d57c /tests/gem_gtt_speed.c
parentd4e6a5197002b51644bc01d4f7926c4b4d726933 (diff)
tests/kms_psr_sink_crc: Check color ref CRC
Black screen is forbidden on this test. So let's fail if sink crc shows it is back. Also there are many cases where we know for shure it should be all green, so let's check for them. Instead of checking colors we could print with sw using cairo and check if we have identical crc like cursor testcases. However with PSR the chance of artifacts is low and chance of getting blank screen or unchanged screen is high. So even drawing on sw and comparing both CRCs we can have the same result. However the risk is that screen never changed. So the safest way is to compare if screen changed and check the green color when we know it should be green or not green. v2: Hardcoded green was simply wrong because green CRC can change depending on display.Split R, G and B on CRC and bitewise them with mask to verify it is green. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'tests/gem_gtt_speed.c')
0 files changed, 0 insertions, 0 deletions