[Piglit] [PATCH 2/2] gles2: new glReadPixels unit test

Tom Gall tom.gall at linaro.org
Thu Nov 29 10:02:51 PST 2012


On Thu, Nov 29, 2012 at 11:34 AM, Chad Versace
<chad.versace at linux.intel.com> wrote:
> On 11/28/2012 12:13 PM, Eric Anholt wrote:
>> Tom Gall <tom.gall at linaro.org> 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


More information about the Piglit mailing list