[Piglit] [PATCH 15/15] arb_tessellation_shader: add a test with an array in a struct in a per-vertex TCS out

Marek Olšák maraeo at gmail.com
Wed Apr 4 01:19:48 UTC 2018


On Tue, Apr 3, 2018 at 9:16 PM, Timothy Arceri <tarceri at itsqueeze.com>
wrote:

>
>
> On 27/03/18 10:32, Marek Olšák wrote:
>
>> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>>
>> This currently hits a bug in Mesa's GLSL-to-TGSI conversion.
>> ---
>>   .../tcs-tes-array-in-struct.shader_test            | 78
>> ++++++++++++++++++++++
>>   1 file changed, 78 insertions(+)
>>   create mode 100644 tests/spec/arb_tessellation_sh
>> ader/execution/variable-indexing/tcs-tes-array-in-struct.shader_test
>>
>> diff --git a/tests/spec/arb_tessellation_shader/execution/variable-inde
>> xing/tcs-tes-array-in-struct.shader_test b/tests/spec/arb_tessellation_
>> shader/execution/variable-indexing/tcs-tes-array-in-struct.shader_test
>> new file mode 100644
>> index 000000000..8611bdfa7
>> --- /dev/null
>> +++ b/tests/spec/arb_tessellation_shader/execution/variable-inde
>> xing/tcs-tes-array-in-struct.shader_test
>> @@ -0,0 +1,78 @@
>> +[require]
>> +GLSL >= 1.50
>> +GL_ARB_tessellation_shader
>> +
>> +[vertex shader passthrough]
>> +
>> +[tessellation control shader]
>> +#version 150
>> +#extension GL_ARB_tessellation_shader : require
>> +
>> +layout(vertices = 4) out;
>> +
>> +struct S {
>> +    int v[2];
>> +};
>> +
>> +out S tcs_tes_s[];
>> +
>> +void main()
>> +{
>> +    for (int i = 0; i < 2; ++i)
>> +       tcs_tes_s[gl_InvocationID].v[i] = gl_InvocationID * 2 + i;
>> +
>> +//    gl_out[gl_InvocationID].gl_Position =
>> gl_in[gl_InvocationID].gl_Position;
>>
>
> remove ???


Yes. That can be removed.

Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20180403/68e1e452/attachment.html>


More information about the Piglit mailing list