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 "../Deqpgles3BaseFunc.h"
19#include "../ActsDeqpgles30039TestSuite.h"
20#include "shrinkdefine.h"
21
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038720,
27        "dEQP-GLES3.functional.fragment_o",
28        "ut.basic.float.rgba32f_lowp_float");
29
30static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038721,
31        "dEQP-GLES3.functional.fragment_o",
32        "ut.basic.float.rgba32f_lowp_vec2");
33
34static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038722,
35        "dEQP-GLES3.functional.fragment_o",
36        "ut.basic.float.rgba32f_lowp_vec3");
37
38static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038723,
39        "dEQP-GLES3.functional.fragment_o",
40        "ut.basic.float.rgba32f_lowp_vec4");
41
42static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038724,
43        "dEQP-GLES3.functional.fragment_out",
44        ".basic.float.rgba32f_mediump_float");
45
46static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038725,
47        "dEQP-GLES3.functional.fragment_ou",
48        "t.basic.float.rgba32f_mediump_vec2");
49
50static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038726,
51        "dEQP-GLES3.functional.fragment_ou",
52        "t.basic.float.rgba32f_mediump_vec3");
53
54static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038727,
55        "dEQP-GLES3.functional.fragment_ou",
56        "t.basic.float.rgba32f_mediump_vec4");
57
58static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038728,
59        "dEQP-GLES3.functional.fragment_ou",
60        "t.basic.float.rgba32f_highp_float");
61
62static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038729,
63        "dEQP-GLES3.functional.fragment_o",
64        "ut.basic.float.rgba32f_highp_vec2");
65
66static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038730,
67        "dEQP-GLES3.functional.fragment_o",
68        "ut.basic.float.rgba32f_highp_vec3");
69
70static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038731,
71        "dEQP-GLES3.functional.fragment_o",
72        "ut.basic.float.rgba32f_highp_vec4");
73
74static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038732,
75        "dEQP-GLES3.functional.fragment_o",
76        "ut.basic.float.rgba16f_lowp_float");
77
78static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038733,
79        "dEQP-GLES3.functional.fragment_o",
80        "ut.basic.float.rgba16f_lowp_vec2");
81
82static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038734,
83        "dEQP-GLES3.functional.fragment_o",
84        "ut.basic.float.rgba16f_lowp_vec3");
85
86static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038735,
87        "dEQP-GLES3.functional.fragment_o",
88        "ut.basic.float.rgba16f_lowp_vec4");
89
90static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038736,
91        "dEQP-GLES3.functional.fragment_out",
92        ".basic.float.rgba16f_mediump_float");
93
94static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038737,
95        "dEQP-GLES3.functional.fragment_ou",
96        "t.basic.float.rgba16f_mediump_vec2");
97
98static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038738,
99        "dEQP-GLES3.functional.fragment_ou",
100        "t.basic.float.rgba16f_mediump_vec3");
101
102static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038739,
103        "dEQP-GLES3.functional.fragment_ou",
104        "t.basic.float.rgba16f_mediump_vec4");
105
106static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038740,
107        "dEQP-GLES3.functional.fragment_ou",
108        "t.basic.float.rgba16f_highp_float");
109
110static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038741,
111        "dEQP-GLES3.functional.fragment_o",
112        "ut.basic.float.rgba16f_highp_vec2");
113
114static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038742,
115        "dEQP-GLES3.functional.fragment_o",
116        "ut.basic.float.rgba16f_highp_vec3");
117
118static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038743,
119        "dEQP-GLES3.functional.fragment_o",
120        "ut.basic.float.rgba16f_highp_vec4");
121
122static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038744,
123        "dEQP-GLES3.functional.fragment_out.b",
124        "asic.float.r11f_g11f_b10f_lowp_float");
125
126static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038745,
127        "dEQP-GLES3.functional.fragment_out.",
128        "basic.float.r11f_g11f_b10f_lowp_vec2");
129
130static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038746,
131        "dEQP-GLES3.functional.fragment_out.",
132        "basic.float.r11f_g11f_b10f_lowp_vec3");
133
134static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038747,
135        "dEQP-GLES3.functional.fragment_out.",
136        "basic.float.r11f_g11f_b10f_lowp_vec4");
137
138static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038748,
139        "dEQP-GLES3.functional.fragment_out.ba",
140        "sic.float.r11f_g11f_b10f_mediump_float");
141
142static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038749,
143        "dEQP-GLES3.functional.fragment_out.ba",
144        "sic.float.r11f_g11f_b10f_mediump_vec2");
145
146static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038750,
147        "dEQP-GLES3.functional.fragment_out.ba",
148        "sic.float.r11f_g11f_b10f_mediump_vec3");
149
150static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038751,
151        "dEQP-GLES3.functional.fragment_out.ba",
152        "sic.float.r11f_g11f_b10f_mediump_vec4");
153
154static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038752,
155        "dEQP-GLES3.functional.fragment_out.b",
156        "asic.float.r11f_g11f_b10f_highp_float");
157
158static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038753,
159        "dEQP-GLES3.functional.fragment_out.b",
160        "asic.float.r11f_g11f_b10f_highp_vec2");
161
162static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038754,
163        "dEQP-GLES3.functional.fragment_out.b",
164        "asic.float.r11f_g11f_b10f_highp_vec3");
165
166static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038755,
167        "dEQP-GLES3.functional.fragment_out.b",
168        "asic.float.r11f_g11f_b10f_highp_vec4");
169
170static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038756,
171        "dEQP-GLES3.functional.fragment_",
172        "out.basic.float.rg32f_lowp_float");
173
174static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038757,
175        "dEQP-GLES3.functional.fragment_",
176        "out.basic.float.rg32f_lowp_vec2");
177
178static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038758,
179        "dEQP-GLES3.functional.fragment_",
180        "out.basic.float.rg32f_lowp_vec3");
181
182static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038759,
183        "dEQP-GLES3.functional.fragment_",
184        "out.basic.float.rg32f_lowp_vec4");
185
186static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038760,
187        "dEQP-GLES3.functional.fragment_ou",
188        "t.basic.float.rg32f_mediump_float");
189
190static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038761,
191        "dEQP-GLES3.functional.fragment_o",
192        "ut.basic.float.rg32f_mediump_vec2");
193
194static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038762,
195        "dEQP-GLES3.functional.fragment_o",
196        "ut.basic.float.rg32f_mediump_vec3");
197
198static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038763,
199        "dEQP-GLES3.functional.fragment_o",
200        "ut.basic.float.rg32f_mediump_vec4");
201
202static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038764,
203        "dEQP-GLES3.functional.fragment_o",
204        "ut.basic.float.rg32f_highp_float");
205
206static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038765,
207        "dEQP-GLES3.functional.fragment_",
208        "out.basic.float.rg32f_highp_vec2");
209
210static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038766,
211        "dEQP-GLES3.functional.fragment_",
212        "out.basic.float.rg32f_highp_vec3");
213
214static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038767,
215        "dEQP-GLES3.functional.fragment_",
216        "out.basic.float.rg32f_highp_vec4");
217
218static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038768,
219        "dEQP-GLES3.functional.fragment_",
220        "out.basic.float.rg16f_lowp_float");
221
222static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038769,
223        "dEQP-GLES3.functional.fragment_",
224        "out.basic.float.rg16f_lowp_vec2");
225
226static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038770,
227        "dEQP-GLES3.functional.fragment_",
228        "out.basic.float.rg16f_lowp_vec3");
229
230static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038771,
231        "dEQP-GLES3.functional.fragment_",
232        "out.basic.float.rg16f_lowp_vec4");
233
234static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038772,
235        "dEQP-GLES3.functional.fragment_ou",
236        "t.basic.float.rg16f_mediump_float");
237
238static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038773,
239        "dEQP-GLES3.functional.fragment_o",
240        "ut.basic.float.rg16f_mediump_vec2");
241
242static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038774,
243        "dEQP-GLES3.functional.fragment_o",
244        "ut.basic.float.rg16f_mediump_vec3");
245
246static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038775,
247        "dEQP-GLES3.functional.fragment_o",
248        "ut.basic.float.rg16f_mediump_vec4");
249
250static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038776,
251        "dEQP-GLES3.functional.fragment_o",
252        "ut.basic.float.rg16f_highp_float");
253
254static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038777,
255        "dEQP-GLES3.functional.fragment_",
256        "out.basic.float.rg16f_highp_vec2");
257
258static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038778,
259        "dEQP-GLES3.functional.fragment_",
260        "out.basic.float.rg16f_highp_vec3");
261
262static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038779,
263        "dEQP-GLES3.functional.fragment_",
264        "out.basic.float.rg16f_highp_vec4");
265
266static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038780,
267        "dEQP-GLES3.functional.fragment_",
268        "out.basic.float.r32f_lowp_float");
269
270static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038781,
271        "dEQP-GLES3.functional.fragment",
272        "_out.basic.float.r32f_lowp_vec2");
273
274static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038782,
275        "dEQP-GLES3.functional.fragment",
276        "_out.basic.float.r32f_lowp_vec3");
277
278static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038783,
279        "dEQP-GLES3.functional.fragment",
280        "_out.basic.float.r32f_lowp_vec4");
281
282static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038784,
283        "dEQP-GLES3.functional.fragment_o",
284        "ut.basic.float.r32f_mediump_float");
285
286static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038785,
287        "dEQP-GLES3.functional.fragment_o",
288        "ut.basic.float.r32f_mediump_vec2");
289
290static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038786,
291        "dEQP-GLES3.functional.fragment_o",
292        "ut.basic.float.r32f_mediump_vec3");
293
294static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038787,
295        "dEQP-GLES3.functional.fragment_o",
296        "ut.basic.float.r32f_mediump_vec4");
297
298static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038788,
299        "dEQP-GLES3.functional.fragment_",
300        "out.basic.float.r32f_highp_float");
301
302static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038789,
303        "dEQP-GLES3.functional.fragment_",
304        "out.basic.float.r32f_highp_vec2");
305
306static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038790,
307        "dEQP-GLES3.functional.fragment_",
308        "out.basic.float.r32f_highp_vec3");
309
310static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038791,
311        "dEQP-GLES3.functional.fragment_",
312        "out.basic.float.r32f_highp_vec4");
313
314static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038792,
315        "dEQP-GLES3.functional.fragment_",
316        "out.basic.float.r16f_lowp_float");
317
318static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038793,
319        "dEQP-GLES3.functional.fragment",
320        "_out.basic.float.r16f_lowp_vec2");
321
322static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038794,
323        "dEQP-GLES3.functional.fragment",
324        "_out.basic.float.r16f_lowp_vec3");
325
326static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038795,
327        "dEQP-GLES3.functional.fragment",
328        "_out.basic.float.r16f_lowp_vec4");
329
330static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038796,
331        "dEQP-GLES3.functional.fragment_o",
332        "ut.basic.float.r16f_mediump_float");
333
334static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038797,
335        "dEQP-GLES3.functional.fragment_o",
336        "ut.basic.float.r16f_mediump_vec2");
337
338static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038798,
339        "dEQP-GLES3.functional.fragment_o",
340        "ut.basic.float.r16f_mediump_vec3");
341
342static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038799,
343        "dEQP-GLES3.functional.fragment_o",
344        "ut.basic.float.r16f_mediump_vec4");
345
346static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038800,
347        "dEQP-GLES3.functional.fragment_",
348        "out.basic.float.r16f_highp_float");
349
350static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038801,
351        "dEQP-GLES3.functional.fragment_",
352        "out.basic.float.r16f_highp_vec2");
353
354static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038802,
355        "dEQP-GLES3.functional.fragment_",
356        "out.basic.float.r16f_highp_vec3");
357
358static SHRINK_HWTEST_F(ActsDeqpgles30039TestSuite, TestCase_038803,
359        "dEQP-GLES3.functional.fragment_",
360        "out.basic.float.r16f_highp_vec4");
361