On Tue, Mar 3, 2015 at 6:43 PM, Guo, Johney <[email protected]> wrote:
>
> According to spec, this test should expected to error  instead of success.
> The behavior is different with Khronos conformance test 
> GL44-CTS.gtf32.GL3Tests.fragment_coord_conventions.fragment_coord_conventions_32_multishader_error_1
>    ( subcase 
> redeclaration_with_no_layout_qualifiers_and_no_redeclaration_but_use).
>
> *     "If gl_FragCoord is redeclared in any fragment shader in a program,
>  *      it must be redeclared in all the fragment shaders in that program
>  *      that have a static use gl_FragCoord. All redeclarations of
>  *      gl_FragCoord in all fragment shaders in a single program must have
>  *      the same set of qualifiers."
>
> Please check it.
> ---
>
> diff --git 
> a/tests/spec/glsl-1.50/execution/fragcoord-layout-qualifiers-conflicting-case-7.shader_test
>  
> b/tests/spec/glsl-1.50/execution/fragcoord-layout-qualifiers-conflicting-case-7.shader_test
> index 13605b4..201c75d 100644
> --- 
> a/tests/spec/glsl-1.50/execution/fragcoord-layout-qualifiers-conflicting-case-7.shader_test
> +++ 
> b/tests/spec/glsl-1.50/execution/fragcoord-layout-qualifiers-conflicting-case-7.shader_test
> @@ -48,4 +48,4 @@ void alpha()
>
>
>  [test]
> -link success
> +link error

If you make this change, you should update the comment above the
[require] section as well.

I think I'd have to agree with your interpretation. It seems like "If
gl_FragCoord is redeclared in any fragment shader in a program, it
must be redeclared in all the fragment shaders in that program that
have a static use [of] gl_FragCoord." is pretty clear that this case
should fail to link.

Anuj, Jordan, Chris?
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to