kms_plane: Add panning test for primary plane
authorYi Sun <yi.sun@intel.com>
Fri, 23 May 2014 00:28:47 +0000 (08:28 +0800)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 7 Jul 2014 17:27:10 +0000 (18:27 +0100)
commitb5333b416f6a206a583684b0fba9265c0badbd6c
treeb1e816094759740c4de63e8452976128d0b88bac
parentde538cfc7cd649216801829daffe602f4efee08a
kms_plane: Add panning test for primary plane

Get CRCs of a full red and a full blue surface as reference.

Create a big framebuffer that is twice width and twice height as the
current display mode.

Fill the top left quarter with red, bottom right quarter with blue
Check the scanned out image with the CRTC at position (0, 0) of the
framebuffer and it should be the same CRC as the full red fb
Check the scanned out image with the CRTC at position (hdisplay,
vdisplay) and it should be the same CRC as the full blue fb

v2: Fix a few things here and there (Damien)

Cc: Lei Liu <lei.a.liu@intel.com>
Cc: Yi Sun <yi.sun@intel.com>
Signed-off-by: Lei Liu <lei.a.liu@intel.com>
Signed-off-by: Yi Sun <yi.sun@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
lib/igt_kms.c
lib/igt_kms.h
tests/kms_plane.c