[Piglit] [PATCH v2] gs: Test rules related to geometry shader input sizes.

Paul Berry stereotype441 at gmail.com
Wed Aug 14 08:27:58 PDT 2013


On 12 August 2013 14:30, Paul Berry <stereotype441 at gmail.com> wrote:

> On 9 August 2013 11:59, Ian Romanick <idr at freedesktop.org> wrote:
>
> On 08/05/2013 08:51 AM, Paul Berry wrote:
>>
>>  diff --git
>>> a/tests/spec/glsl-1.50/execution/gs-input-sizing-layout-consistent-with-static-usage.shader_test
>>> b/tests/spec/glsl-1.50/execution/gs-input-sizing-layout-consistent-with-static-usage.shader_test
>>> new file mode 100644
>>> index 0000000..96d1f7f
>>> --- /dev/null
>>> +++
>>> b/tests/spec/glsl-1.50/execution/gs-input-sizing-layout-consistent-with-static-usage.shader_test
>>> @@ -0,0 +1,82 @@
>>> +# Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec says:
>>> +#
>>> +# It is a link-time error if not all provided sizes (sized input
>>> +# arrays and layout size) match across all geometry shaders in the
>>> +# program.
>>> +#
>>> +# This test exercises the case where one compilation unit provides a
>>> +# size via a layout declaration, and another provides a size
>>> +# implicitly by accessing a member of an input array using a constant
>>> +# that is consistent with the size provided in the layout declaration.
>>>
>>
>> This is a clever test. :)  How do other implementations fare?
>
>
> I don't recall.  I'll check my NVIDIA system and let you know.
>

Ironically, although my NVIDIA system only passes 8/31 of these tests, it
passes this one :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130814/2da3a674/attachment.html>


More information about the Piglit mailing list