1f6603c60Sopenharmony_ci/*
2f6603c60Sopenharmony_ci * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3f6603c60Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4f6603c60Sopenharmony_ci * you may not use this file except in compliance with the License.
5f6603c60Sopenharmony_ci * You may obtain a copy of the License at
6f6603c60Sopenharmony_ci *
7f6603c60Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8f6603c60Sopenharmony_ci *
9f6603c60Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10f6603c60Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11f6603c60Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12f6603c60Sopenharmony_ci * See the License for the specific language governing permissions and
13f6603c60Sopenharmony_ci * limitations under the License.
14f6603c60Sopenharmony_ci */
15f6603c60Sopenharmony_ci
16f6603c60Sopenharmony_ci#include <climits>
17f6603c60Sopenharmony_ci#include <gtest/gtest.h>
18f6603c60Sopenharmony_ci#include "../Deqpgles2BaseFunc.h"
19f6603c60Sopenharmony_ci#include "../ActsDeqpgles20001TestSuite.h"
20f6603c60Sopenharmony_ci#include "shrinkdefine.h"
21f6603c60Sopenharmony_ci
22f6603c60Sopenharmony_ciusing namespace std;
23f6603c60Sopenharmony_ciusing namespace testing::ext;
24f6603c60Sopenharmony_ciusing namespace OHOS;
25f6603c60Sopenharmony_ci
26f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000728,
27f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.s",
28f6603c60Sopenharmony_ci        "haders.linkage.varying_1");
29f6603c60Sopenharmony_ci
30f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000729,
31f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.s",
32f6603c60Sopenharmony_ci        "haders.linkage.varying_2");
33f6603c60Sopenharmony_ci
34f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000730,
35f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.s",
36f6603c60Sopenharmony_ci        "haders.linkage.varying_3");
37f6603c60Sopenharmony_ci
38f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000731,
39f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.s",
40f6603c60Sopenharmony_ci        "haders.linkage.varying_4");
41f6603c60Sopenharmony_ci
42f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000732,
43f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.s",
44f6603c60Sopenharmony_ci        "haders.linkage.varying_5");
45f6603c60Sopenharmony_ci
46f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000733,
47f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.s",
48f6603c60Sopenharmony_ci        "haders.linkage.varying_6");
49f6603c60Sopenharmony_ci
50f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000734,
51f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.s",
52f6603c60Sopenharmony_ci        "haders.linkage.varying_7");
53f6603c60Sopenharmony_ci
54f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000735,
55f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shader",
56f6603c60Sopenharmony_ci        "s.linkage.varying_type_float");
57f6603c60Sopenharmony_ci
58f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000736,
59f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shade",
60f6603c60Sopenharmony_ci        "rs.linkage.varying_type_vec2");
61f6603c60Sopenharmony_ci
62f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000737,
63f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shade",
64f6603c60Sopenharmony_ci        "rs.linkage.varying_type_vec3");
65f6603c60Sopenharmony_ci
66f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000738,
67f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shade",
68f6603c60Sopenharmony_ci        "rs.linkage.varying_type_vec4");
69f6603c60Sopenharmony_ci
70f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000739,
71f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shade",
72f6603c60Sopenharmony_ci        "rs.linkage.varying_type_mat2");
73f6603c60Sopenharmony_ci
74f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000740,
75f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shade",
76f6603c60Sopenharmony_ci        "rs.linkage.varying_type_mat3");
77f6603c60Sopenharmony_ci
78f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000741,
79f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shade",
80f6603c60Sopenharmony_ci        "rs.linkage.varying_type_mat4");
81f6603c60Sopenharmony_ci
82f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000742,
83f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.lin",
84f6603c60Sopenharmony_ci        "kage.varying_differing_precision_1");
85f6603c60Sopenharmony_ci
86f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000743,
87f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.lin",
88f6603c60Sopenharmony_ci        "kage.varying_differing_precision_2");
89f6603c60Sopenharmony_ci
90f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000744,
91f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.lin",
92f6603c60Sopenharmony_ci        "kage.varying_differing_precision_3");
93f6603c60Sopenharmony_ci
94f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000745,
95f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.",
96f6603c60Sopenharmony_ci        "linkage.varying_type_mismatch_2");
97f6603c60Sopenharmony_ci
98f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000746,
99f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.l",
100f6603c60Sopenharmony_ci        "inkage.invalid_varying_type_int");
101f6603c60Sopenharmony_ci
102f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000747,
103f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.l",
104f6603c60Sopenharmony_ci        "inkage.invalid_varying_type_bool");
105f6603c60Sopenharmony_ci
106f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000748,
107f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.li",
108f6603c60Sopenharmony_ci        "nkage.invalid_varying_type_struct");
109f6603c60Sopenharmony_ci
110f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000749,
111f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shader",
112f6603c60Sopenharmony_ci        "s.linkage.varying_readback_1");
113f6603c60Sopenharmony_ci
114f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000750,
115f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shader",
116f6603c60Sopenharmony_ci        "s.linkage.varying_writeback_1");
117f6603c60Sopenharmony_ci
118f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000751,
119f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shad",
120f6603c60Sopenharmony_ci        "ers.linkage.uniform_struct");
121f6603c60Sopenharmony_ci
122f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000752,
123f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.li",
124f6603c60Sopenharmony_ci        "nkage.uniform_struct_vertex_only");
125f6603c60Sopenharmony_ci
126f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000753,
127f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.lin",
128f6603c60Sopenharmony_ci        "kage.uniform_struct_fragment_only");
129f6603c60Sopenharmony_ci
130f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000754,
131f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.",
132f6603c60Sopenharmony_ci        "linkage.uniform_struct_partial");
133f6603c60Sopenharmony_ci
134f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000755,
135f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shader",
136f6603c60Sopenharmony_ci        "s.linkage.uniform_struct_vec4");
137f6603c60Sopenharmony_ci
138f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000756,
139f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.link",
140f6603c60Sopenharmony_ci        "age.uniform_struct_vertex_only_vec4");
141f6603c60Sopenharmony_ci
142f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000757,
143f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linka",
144f6603c60Sopenharmony_ci        "ge.uniform_struct_fragment_only_vec4");
145f6603c60Sopenharmony_ci
146f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000758,
147f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.li",
148f6603c60Sopenharmony_ci        "nkage.uniform_struct_partial_vec4");
149f6603c60Sopenharmony_ci
150f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000759,
151f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.l",
152f6603c60Sopenharmony_ci        "inkage.uniform_struct_vec4_vec3");
153f6603c60Sopenharmony_ci
154f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000760,
155f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linkage",
156f6603c60Sopenharmony_ci        ".uniform_struct_vertex_only_vec4_vec3");
157f6603c60Sopenharmony_ci
158f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000761,
159f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linkage.",
160f6603c60Sopenharmony_ci        "uniform_struct_fragment_only_vec4_vec3");
161f6603c60Sopenharmony_ci
162f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000762,
163f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linka",
164f6603c60Sopenharmony_ci        "ge.uniform_struct_partial_vec4_vec3");
165f6603c60Sopenharmony_ci
166f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000763,
167f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.l",
168f6603c60Sopenharmony_ci        "inkage.uniform_struct_vec4_float");
169f6603c60Sopenharmony_ci
170f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000764,
171f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linkage",
172f6603c60Sopenharmony_ci        ".uniform_struct_vertex_only_vec4_float");
173f6603c60Sopenharmony_ci
174f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000765,
175f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linkage.",
176f6603c60Sopenharmony_ci        "uniform_struct_fragment_only_vec4_float");
177f6603c60Sopenharmony_ci
178f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000766,
179f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linka",
180f6603c60Sopenharmony_ci        "ge.uniform_struct_partial_vec4_float");
181f6603c60Sopenharmony_ci
182f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000767,
183f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linkag",
184f6603c60Sopenharmony_ci        "e.uniform_struct_partial_vec4_struct");
185f6603c60Sopenharmony_ci
186f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000768,
187f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linkage.",
188f6603c60Sopenharmony_ci        "uniform_struct_partial_vec4_vec3_struct");
189f6603c60Sopenharmony_ci
190f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000769,
191f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linka",
192f6603c60Sopenharmony_ci        "ge.uniform_struct_partial_vec2_vec3");
193f6603c60Sopenharmony_ci
194f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000770,
195f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.link",
196f6603c60Sopenharmony_ci        "age.uniform_struct_partial_vec2_int");
197f6603c60Sopenharmony_ci
198f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000771,
199f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linka",
200f6603c60Sopenharmony_ci        "ge.uniform_struct_partial_int_float");
201f6603c60Sopenharmony_ci
202f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000772,
203f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linka",
204f6603c60Sopenharmony_ci        "ge.uniform_struct_partial_bvec2_vec2");
205f6603c60Sopenharmony_ci
206f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000773,
207f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linka",
208f6603c60Sopenharmony_ci        "ge.uniform_struct_partial_ivec2_vec2");
209f6603c60Sopenharmony_ci
210f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000774,
211f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linkag",
212f6603c60Sopenharmony_ci        "e.uniform_struct_partial_ivec2_ivec2");
213f6603c60Sopenharmony_ci
214f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000775,
215f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.li",
216f6603c60Sopenharmony_ci        "nkage.uniform_struct_use_case_rip");
217f6603c60Sopenharmony_ci
218f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000776,
219f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.shaders.linkage.",
220f6603c60Sopenharmony_ci        "uniform_struct_use_case_rip_sans_highp");
221