Merge "Add triangle edge guardband for Tex2D lookup diff" am: da231f19ab
[platform/upstream/VK-GL-CTS.git] / data / gles2 / shaders / fragdata.test
1
2 case invalid_assign_to_1
3         version 100 es
4         expect compile_fail
5         vertex ""
6                 void main (void)
7                 {
8                         gl_Position = vec4(1.0);
9                 }
10         ""
11         fragment ""
12                 void main (void)
13                 {
14                         gl_FragData[1] = vec4(1.0);
15                 }
16         ""
17 end
18
19 case write_fragcolor_and_fragdata_simple
20         version 100 es
21         expect compile_fail
22         vertex ""
23                 void main (void)
24                 {
25                         gl_Position = vec4(1.0);
26                 }
27         ""
28         fragment ""
29                 void main (void)
30                 {
31                         gl_FragColor = vec4(1.0);
32                         gl_FragData[0] = vec4(1.0);
33                 }
34         ""
35 end
36
37 case write_fragcolor_and_fragdata_static_if
38         version 100 es
39         expect compile_fail
40         vertex ""
41                 void main (void)
42                 {
43                         gl_Position = vec4(1.0);
44                 }
45         ""
46         fragment ""
47                 void main (void)
48                 {
49                         if (false)
50                                 gl_FragColor = vec4(1.0);
51                         else
52                                 gl_FragData[0] = vec4(1.0);
53                 }
54         ""
55 end
56
57 case write_fragcolor_and_fragdata_unused_func
58         version 100 es
59         expect compile_fail
60         vertex ""
61                 void main (void)
62                 {
63                         gl_Position = vec4(1.0);
64                 }
65         ""
66         fragment ""
67                 void unused (void)
68                 {
69                         gl_FragData[0] = vec4(1.0);
70                 }
71                 void main (void)
72                 {
73                         gl_FragColor = vec4(1.0);
74                 }
75         ""
76 end