1/*
2 * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#include <climits>
17#include <gtest/gtest.h>
18#include "../Deqpgles2BaseFunc.h"
19#include "../ActsDeqpgles20001TestSuite.h"
20#include "shrinkdefine.h"
21
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000649,
27        "dEQP-GLES2.functional.shaders",
28        ".constants.float_input_vertex");
29
30static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000650,
31        "dEQP-GLES2.functional.shaders.",
32        "constants.float_input_fragment");
33
34static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000651,
35        "dEQP-GLES2.functional.shaders.",
36        "constants.float_uniform_vertex");
37
38static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000652,
39        "dEQP-GLES2.functional.shaders.c",
40        "onstants.float_uniform_fragment");
41
42static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000653,
43        "dEQP-GLES2.functional.shade",
44        "rs.constants.float_0_vertex");
45
46static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000654,
47        "dEQP-GLES2.functional.shader",
48        "s.constants.float_0_fragment");
49
50static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000655,
51        "dEQP-GLES2.functional.shade",
52        "rs.constants.float_1_vertex");
53
54static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000656,
55        "dEQP-GLES2.functional.shader",
56        "s.constants.float_1_fragment");
57
58static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000657,
59        "dEQP-GLES2.functional.shade",
60        "rs.constants.float_2_vertex");
61
62static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000658,
63        "dEQP-GLES2.functional.shader",
64        "s.constants.float_2_fragment");
65
66static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000659,
67        "dEQP-GLES2.functional.shade",
68        "rs.constants.float_3_vertex");
69
70static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000660,
71        "dEQP-GLES2.functional.shader",
72        "s.constants.float_3_fragment");
73
74static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000661,
75        "dEQP-GLES2.functional.shade",
76        "rs.constants.float_4_vertex");
77
78static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000662,
79        "dEQP-GLES2.functional.shader",
80        "s.constants.float_4_fragment");
81
82static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000663,
83        "dEQP-GLES2.functional.shade",
84        "rs.constants.float_5_vertex");
85
86static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000664,
87        "dEQP-GLES2.functional.shader",
88        "s.constants.float_5_fragment");
89
90static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000665,
91        "dEQP-GLES2.functional.shade",
92        "rs.constants.float_6_vertex");
93
94static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000666,
95        "dEQP-GLES2.functional.shader",
96        "s.constants.float_6_fragment");
97
98static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000667,
99        "dEQP-GLES2.functional.shade",
100        "rs.constants.float_7_vertex");
101
102static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000668,
103        "dEQP-GLES2.functional.shader",
104        "s.constants.float_7_fragment");
105
106static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000669,
107        "dEQP-GLES2.functional.shade",
108        "rs.constants.float_8_vertex");
109
110static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000670,
111        "dEQP-GLES2.functional.shader",
112        "s.constants.float_8_fragment");
113
114static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000671,
115        "dEQP-GLES2.functional.shad",
116        "ers.constants.int_0_vertex");
117
118static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000672,
119        "dEQP-GLES2.functional.shade",
120        "rs.constants.int_0_fragment");
121
122static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000673,
123        "dEQP-GLES2.functional.shad",
124        "ers.constants.int_1_vertex");
125
126static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000674,
127        "dEQP-GLES2.functional.shade",
128        "rs.constants.int_1_fragment");
129
130static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000675,
131        "dEQP-GLES2.functional.shad",
132        "ers.constants.int_2_vertex");
133
134static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000676,
135        "dEQP-GLES2.functional.shade",
136        "rs.constants.int_2_fragment");
137
138static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000677,
139        "dEQP-GLES2.functional.shad",
140        "ers.constants.int_3_vertex");
141
142static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000678,
143        "dEQP-GLES2.functional.shade",
144        "rs.constants.int_3_fragment");
145
146static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000679,
147        "dEQP-GLES2.functional.shad",
148        "ers.constants.int_4_vertex");
149
150static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000680,
151        "dEQP-GLES2.functional.shade",
152        "rs.constants.int_4_fragment");
153
154static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000681,
155        "dEQP-GLES2.functional.shad",
156        "ers.constants.bool_0_vertex");
157
158static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000682,
159        "dEQP-GLES2.functional.shade",
160        "rs.constants.bool_0_fragment");
161
162static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000683,
163        "dEQP-GLES2.functional.shad",
164        "ers.constants.bool_1_vertex");
165
166static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000684,
167        "dEQP-GLES2.functional.shade",
168        "rs.constants.bool_1_fragment");
169
170static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000685,
171        "dEQP-GLES2.functional.shaders.co",
172        "nstants.const_float_global_vertex");
173
174static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000686,
175        "dEQP-GLES2.functional.shaders.con",
176        "stants.const_float_global_fragment");
177
178static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000687,
179        "dEQP-GLES2.functional.shaders.c",
180        "onstants.const_float_main_vertex");
181
182static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000688,
183        "dEQP-GLES2.functional.shaders.co",
184        "nstants.const_float_main_fragment");
185
186static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000689,
187        "dEQP-GLES2.functional.shaders.con",
188        "stants.const_float_function_vertex");
189
190static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000690,
191        "dEQP-GLES2.functional.shaders.cons",
192        "tants.const_float_function_fragment");
193
194static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000691,
195        "dEQP-GLES2.functional.shaders.co",
196        "nstants.const_float_scope_vertex");
197
198static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000692,
199        "dEQP-GLES2.functional.shaders.con",
200        "stants.const_float_scope_fragment");
201
202static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000693,
203        "dEQP-GLES2.functional.shaders.constant",
204        "s.const_float_scope_shawdowing_1_vertex");
205
206static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000694,
207        "dEQP-GLES2.functional.shaders.constants",
208        ".const_float_scope_shawdowing_1_fragment");
209
210static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000695,
211        "dEQP-GLES2.functional.shaders.constant",
212        "s.const_float_scope_shawdowing_2_vertex");
213
214static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000696,
215        "dEQP-GLES2.functional.shaders.constants",
216        ".const_float_scope_shawdowing_2_fragment");
217
218static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000697,
219        "dEQP-GLES2.functional.shaders.constant",
220        "s.const_float_scope_shawdowing_3_vertex");
221
222static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000698,
223        "dEQP-GLES2.functional.shaders.constants",
224        ".const_float_scope_shawdowing_3_fragment");
225
226static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000699,
227        "dEQP-GLES2.functional.shaders.constant",
228        "s.const_float_scope_shawdowing_4_vertex");
229
230static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000700,
231        "dEQP-GLES2.functional.shaders.constants",
232        ".const_float_scope_shawdowing_4_fragment");
233
234static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000701,
235        "dEQP-GLES2.functional.shaders.constants.",
236        "const_float_operations_with_const_vertex");
237
238static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000702,
239        "dEQP-GLES2.functional.shaders.constants.c",
240        "onst_float_operations_with_const_fragment");
241
242static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000703,
243        "dEQP-GLES2.functional.shaders.const",
244        "ants.const_float_assignment_1_vertex");
245
246static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000704,
247        "dEQP-GLES2.functional.shaders.consta",
248        "nts.const_float_assignment_1_fragment");
249
250static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000705,
251        "dEQP-GLES2.functional.shaders.const",
252        "ants.const_float_assignment_2_vertex");
253
254static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000706,
255        "dEQP-GLES2.functional.shaders.consta",
256        "nts.const_float_assignment_2_fragment");
257
258static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000707,
259        "dEQP-GLES2.functional.shaders.const",
260        "ants.const_float_assignment_3_vertex");
261
262static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000708,
263        "dEQP-GLES2.functional.shaders.consta",
264        "nts.const_float_assignment_3_fragment");
265
266static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000709,
267        "dEQP-GLES2.functional.shaders.const",
268        "ants.const_float_assignment_4_vertex");
269
270static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000710,
271        "dEQP-GLES2.functional.shaders.consta",
272        "nts.const_float_assignment_4_fragment");
273
274static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000711,
275        "dEQP-GLES2.functional.shaders.consta",
276        "nts.const_float_assign_uniform_vertex");
277
278static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000712,
279        "dEQP-GLES2.functional.shaders.constan",
280        "ts.const_float_assign_uniform_fragment");
281
282static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000713,
283        "dEQP-GLES2.functional.shaders.con",
284        "stants.const_float_assign_varying");
285
286static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000714,
287        "dEQP-GLES2.functional.shaders.con",
288        "stants.const_float_from_int_vertex");
289
290static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000715,
291        "dEQP-GLES2.functional.shaders.cons",
292        "tants.const_float_from_int_fragment");
293
294static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000716,
295        "dEQP-GLES2.functional.shaders.cons",
296        "tants.const_float_from_vec2_vertex");
297
298static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000717,
299        "dEQP-GLES2.functional.shaders.const",
300        "ants.const_float_from_vec2_fragment");
301
302static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000718,
303        "dEQP-GLES2.functional.shaders.cons",
304        "tants.const_float_from_vec3_vertex");
305
306static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000719,
307        "dEQP-GLES2.functional.shaders.const",
308        "ants.const_float_from_vec3_fragment");
309
310static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000720,
311        "dEQP-GLES2.functional.shaders.cons",
312        "tants.const_float_from_vec4_vertex");
313
314static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000721,
315        "dEQP-GLES2.functional.shaders.const",
316        "ants.const_float_from_vec4_fragment");
317
318static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000722,
319        "dEQP-GLES2.functional.shaders.constant",
320        "s.const_float_assign_variable_1_vertex");
321
322static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000723,
323        "dEQP-GLES2.functional.shaders.constants",
324        ".const_float_assign_variable_1_fragment");
325
326static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000724,
327        "dEQP-GLES2.functional.shaders.constant",
328        "s.const_float_assign_variable_2_vertex");
329
330static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000725,
331        "dEQP-GLES2.functional.shaders.constants",
332        ".const_float_assign_variable_2_fragment");
333
334static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000726,
335        "dEQP-GLES2.functional.shaders.constan",
336        "ts.const_float_assign_user_func_vertex");
337
338static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000727,
339        "dEQP-GLES2.functional.shaders.constant",
340        "s.const_float_assign_user_func_fragment");
341