kms_fbc_crc: Add a CRC based FBC test
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 9 Nov 2013 18:58:27 +0000 (20:58 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 27 Nov 2013 14:21:28 +0000 (16:21 +0200)
commit6c9fcc42bb3ef448fdea579795816f7321f8bd75
tree223515c1d2ddf3e25cf7ca51c53de837a3ccbe72
parent49f4860d5c94afffecfac3fcda999bea59d5f929
kms_fbc_crc: Add a CRC based FBC test

kms_fbc_crc will perform various write operations to the scanout buffer
whilc FBC is enabled. CRC checks will be used to make sure the
modifcations to scanout buffer are detected.

The operations include:
 - page flip
 - GTT mmap
 - CPU mmap
 - blit
 - rendercopy
 - context switch + rendercopy
 - combination of a page flip and each operation listed above

v2: Use gem_sw_finish instead of drmModeDirtyFB after CPU access
v3: Drop pwrite tests, call gem_bo_busy() after rendering, drop
    set_domain() calls after mmap access, wait for 2 vblanks

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
tests/Makefile.sources
tests/kms_fbc_crc.c [new file with mode: 0644]