On Thu, Nov 29, 2012 at 11:34 AM, Chad Versace <[email protected]> wrote: > On 11/28/2012 12:13 PM, Eric Anholt wrote: >> Tom Gall <[email protected]> writes: > >>> + /* check that the triangle was rendered correctly */ >>> + for (i=148;i>49;i--) { >>> + linestart=159; >>> + lineend=160; >>> + for(j=linestart;j<=lineend;j++) { >>> + p888=(pixel_f888 *)(((GLubyte >>> *)buffer)+(((i*WIDTH)+j)*3)); >>> + if (p888->red!=0xff && p888->green!=0x00 && >>> p888->blue!=0x00) >>> + return PIGLIT_FAIL; >>> + } >>> + linestart--; >>> + lineend++; >>> + } >> >> What is up with this triangle probing? Render nice rectangles for sanity. > > Tom, in tests/util/piglit-util-gles.c there are utility functions for drawing > and probing rectangles and pixels. File tests/util/piglit-util-gl.c has a > more extensive set of draw and probe functions, but not all of them have > been ported to gles. >
Thanks Chad. Yeah I noticed that. Next version I'm about to push makes use of it. I'd like to think I'm starting to get a clue. -- Regards, Tom "Where's the kaboom!? There was supposed to be an earth-shattering kaboom!" Marvin Martian Graphics Working Group | Linaro.org │ Open source software for ARM SoCs w) tom.gall att linaro.org h) tom_gall att mac.com _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
