Re: [PATCH weston v2 04/14] tests: Add surface checks

2015-05-18 Thread Pekka Paalanen
On Fri, 15 May 2015 16:13:32 -0700 Bryce Harrington wrote: > On Fri, May 15, 2015 at 11:12:45AM +0100, Daniel Stone wrote: > > Hi, > > > > On 15 May 2015 at 09:21, Bryce Harrington wrote: > > > + for (i=y0; i > > + p = a->data + i * a->stride + x0 * a_bpp; > > > +

Re: [PATCH weston v2 04/14] tests: Add surface checks

2015-05-15 Thread Bryce Harrington
On Fri, May 15, 2015 at 11:12:45AM +0100, Daniel Stone wrote: > Hi, > > On 15 May 2015 at 09:21, Bryce Harrington wrote: > > +/** > > + * check_surfaces_equal() - tests if two surfaces are pixel-identical > > + * > > + * Returns true if surface buffers have all the same byte values, > > + * false

Re: [PATCH weston v2 04/14] tests: Add surface checks

2015-05-15 Thread Bryce Harrington
On Fri, May 15, 2015 at 04:55:48PM +0300, Pekka Paalanen wrote: > On Fri, 15 May 2015 01:21:49 -0700 > Bryce Harrington wrote: > > > Introduce helper routines for testing surfaces against specific > > conditions. These allow tests to validate screen captures as displaying > > the correct renderi

Re: [PATCH weston v2 04/14] tests: Add surface checks

2015-05-15 Thread Pekka Paalanen
On Fri, 15 May 2015 01:21:49 -0700 Bryce Harrington wrote: > Introduce helper routines for testing surfaces against specific > conditions. These allow tests to validate screen captures as displaying > the correct rendering results. > > Signed-off-by: Bryce Harrington > --- > tests/weston-test

Re: [PATCH weston v2 04/14] tests: Add surface checks

2015-05-15 Thread Daniel Stone
Hi, On 15 May 2015 at 09:21, Bryce Harrington wrote: > +/** > + * check_surfaces_equal() - tests if two surfaces are pixel-identical > + * > + * Returns true if surface buffers have all the same byte values, > + * false if the surfaces don't match or can't be compared due to > + * different dimen

[PATCH weston v2 04/14] tests: Add surface checks

2015-05-15 Thread Bryce Harrington
Introduce helper routines for testing surfaces against specific conditions. These allow tests to validate screen captures as displaying the correct rendering results. Signed-off-by: Bryce Harrington --- tests/weston-test-client-helper.c | 116 ++ tests/weston