[Piglit] [PATCH 2/4] ATI_fs: add render tests

Eric Anholt eric at anholt.net
Wed Nov 22 00:56:33 UTC 2017


Miklós Máté <mtmkls at gmail.com> writes:

> On 21/11/17 21:17, Eric Anholt wrote:
>> Miklós Máté <mtmkls at gmail.com> writes:
>>> diff --git a/tests/spec/ati_fragment_shader/render-notexture.c b/tests/spec/ati_fragment_shader/render-notexture.c
>>> new file mode 100644
>>> index 000000000..2d9aefe09
>>> --- /dev/null
>>> +++ b/tests/spec/ati_fragment_shader/render-notexture.c
>>> @@ -0,0 +1,71 @@
>>> +/* TODO license header */
>>> +
>>> +/**
>>> + * Tests rendering with GL_ATI_fragment_shader: when no texture is bound
>>> + * - glPassTexCoordATI() should work as normal
>>> + * - glSampleMapATI() should return all zeros (technically this is undefined)
>> I don't think that would be undefined -- you'd have the default texture
>> object used, which would sample as zeroes.
>
> Should I test the right hand side to be black then?

I think so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20171121/aa56345c/attachment.sig>


More information about the Piglit mailing list