modetest: Fix pitches, somewhat
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 17 Apr 2013 19:18:02 +0000 (19:18 +0000)
committerJerome Glisse <jglisse@redhat.com>
Thu, 18 Apr 2013 18:52:00 +0000 (14:52 -0400)
commitc2988eb211ecad2db60081f1000cf19b350703db
tree8f270951131ac0a01ec00c6b875a32abb49fc405
parentaa4afdf0b3be20aa6037b64f90983ea0146b2893
modetest: Fix pitches, somewhat

libkms only has the xrgb8888 format, so we're overallocating the bo by
quite a lot in some cases. But we still need to get the pitch from the
libkms since it's the driver that decides how to align it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
tests/modetest/buffers.c