Convert broken flat -> smooth varying linkage test to a negative test.
authorJarkko Pöyry <jpoyry@google.com>
Mon, 9 Feb 2015 19:23:06 +0000 (11:23 -0800)
committerJarkko Pöyry <jpoyry@google.com>
Mon, 9 Feb 2015 19:23:06 +0000 (11:23 -0800)
Bug: 19298732
Change-Id: I47a31ce9254da9ab09572c0e8be4da43ad33e635

data/gles3/shaders/linkage.test

index 89d41803126426f5deafae10b75a9d5b813188d1..63206a2094e9d3bbea3c8a92a987330eb8116a47 100644 (file)
@@ -464,19 +464,16 @@ group varying "Varying linkage"
                        ""
                end
 
-               # different interpolation
-               case differing_interpolation_1
+               # interpolation_mismatch
+               case interpolation_mismatch_1
                        version 300 es
                        desc "varying interpolation different (flat vs. smooth)"
-                       values
-                       {
-                               input float in0         = [ -1.25 | -25.0 | 1.0 | 2.25 | 3.4 | 16.0 ];
-                               output float out0       = [ -1.25 | -25.0 | 1.0 | 2.25 | 3.4 | 16.0 ];
-                       }
+                       expect link_fail
 
                        vertex ""
                                #version 300 es
                                ${VERTEX_DECLARATIONS}
+                               in highp float in0;
                                flat out mediump float var;
                                void main()
                                {
@@ -491,8 +488,7 @@ group varying "Varying linkage"
                                in mediump float var;
                                void main()
                                {
-                                       out0 = var;
-                                       ${FRAGMENT_OUTPUT}
+                                       ${FRAG_COLOR} = vec4(var);
                                }
                        ""
                end