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 "../EglBaseFunc.h"
19#include "../ActsEgl0001TestSuite.h"
20#include "shrinkdefine.h"
21
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsEgl0001TS, TC000825, "dEQP-EGL.functional.render.sin",
27    "gle_context.gles2.rgb565_window");
28
29static SHRINK_HWTEST_F(ActsEgl0001TS, TC000826, "dEQP-EGL.functional.render.sin",
30    "gle_context.gles2.rgb565_pixmap");
31
32static SHRINK_HWTEST_F(ActsEgl0001TS, TC000827, "dEQP-EGL.functional.render.sing",
33    "le_context.gles2.rgb565_pbuffer");
34
35static SHRINK_HWTEST_F(ActsEgl0001TS, TC000828, "dEQP-EGL.functional.render.sin",
36    "gle_context.gles2.rgb888_window");
37
38static SHRINK_HWTEST_F(ActsEgl0001TS, TC000829, "dEQP-EGL.functional.render.sin",
39    "gle_context.gles2.rgb888_pixmap");
40
41static SHRINK_HWTEST_F(ActsEgl0001TS, TC000830, "dEQP-EGL.functional.render.sing",
42    "le_context.gles2.rgb888_pbuffer");
43
44static SHRINK_HWTEST_F(ActsEgl0001TS, TC000831, "dEQP-EGL.functional.render.sing",
45    "le_context.gles2.rgba4444_window");
46
47static SHRINK_HWTEST_F(ActsEgl0001TS, TC000832, "dEQP-EGL.functional.render.sing",
48    "le_context.gles2.rgba4444_pixmap");
49
50static SHRINK_HWTEST_F(ActsEgl0001TS, TC000833, "dEQP-EGL.functional.render.singl",
51    "e_context.gles2.rgba4444_pbuffer");
52
53static SHRINK_HWTEST_F(ActsEgl0001TS, TC000834, "dEQP-EGL.functional.render.sing",
54    "le_context.gles2.rgba5551_window");
55
56static SHRINK_HWTEST_F(ActsEgl0001TS, TC000835, "dEQP-EGL.functional.render.sing",
57    "le_context.gles2.rgba5551_pixmap");
58
59static SHRINK_HWTEST_F(ActsEgl0001TS, TC000836, "dEQP-EGL.functional.render.singl",
60    "e_context.gles2.rgba5551_pbuffer");
61
62static SHRINK_HWTEST_F(ActsEgl0001TS, TC000837, "dEQP-EGL.functional.render.sing",
63    "le_context.gles2.rgba8888_window");
64
65static SHRINK_HWTEST_F(ActsEgl0001TS, TC000838, "dEQP-EGL.functional.render.sing",
66    "le_context.gles2.rgba8888_pixmap");
67
68static SHRINK_HWTEST_F(ActsEgl0001TS, TC000839, "dEQP-EGL.functional.render.singl",
69    "e_context.gles2.rgba8888_pbuffer");
70
71static SHRINK_HWTEST_F(ActsEgl0001TS, TC000840, "dEQP-EGL.functional.render.sing",
72    "le_context.gles2.other");
73
74static SHRINK_HWTEST_F(ActsEgl0001TS, TC000841, "dEQP-EGL.functional.render.sin",
75    "gle_context.gles3.rgb565_window");
76
77static SHRINK_HWTEST_F(ActsEgl0001TS, TC000842, "dEQP-EGL.functional.render.sin",
78    "gle_context.gles3.rgb565_pixmap");
79
80static SHRINK_HWTEST_F(ActsEgl0001TS, TC000843, "dEQP-EGL.functional.render.sing",
81    "le_context.gles3.rgb565_pbuffer");
82
83static SHRINK_HWTEST_F(ActsEgl0001TS, TC000844, "dEQP-EGL.functional.render.sin",
84    "gle_context.gles3.rgb888_window");
85
86static SHRINK_HWTEST_F(ActsEgl0001TS, TC000845, "dEQP-EGL.functional.render.sin",
87    "gle_context.gles3.rgb888_pixmap");
88
89static SHRINK_HWTEST_F(ActsEgl0001TS, TC000846, "dEQP-EGL.functional.render.sing",
90    "le_context.gles3.rgb888_pbuffer");
91
92static SHRINK_HWTEST_F(ActsEgl0001TS, TC000847, "dEQP-EGL.functional.render.sing",
93    "le_context.gles3.rgba4444_window");
94
95static SHRINK_HWTEST_F(ActsEgl0001TS, TC000848, "dEQP-EGL.functional.render.sing",
96    "le_context.gles3.rgba4444_pixmap");
97
98static SHRINK_HWTEST_F(ActsEgl0001TS, TC000849, "dEQP-EGL.functional.render.singl",
99    "e_context.gles3.rgba4444_pbuffer");
100
101static SHRINK_HWTEST_F(ActsEgl0001TS, TC000850, "dEQP-EGL.functional.render.sing",
102    "le_context.gles3.rgba5551_window");
103
104static SHRINK_HWTEST_F(ActsEgl0001TS, TC000851, "dEQP-EGL.functional.render.sing",
105    "le_context.gles3.rgba5551_pixmap");
106
107static SHRINK_HWTEST_F(ActsEgl0001TS, TC000852, "dEQP-EGL.functional.render.singl",
108    "e_context.gles3.rgba5551_pbuffer");
109
110static SHRINK_HWTEST_F(ActsEgl0001TS, TC000853, "dEQP-EGL.functional.render.sing",
111    "le_context.gles3.rgba8888_window");
112
113static SHRINK_HWTEST_F(ActsEgl0001TS, TC000854, "dEQP-EGL.functional.render.sing",
114    "le_context.gles3.rgba8888_pixmap");
115
116static SHRINK_HWTEST_F(ActsEgl0001TS, TC000855, "dEQP-EGL.functional.render.singl",
117    "e_context.gles3.rgba8888_pbuffer");
118
119static SHRINK_HWTEST_F(ActsEgl0001TS, TC000856, "dEQP-EGL.functional.render.sing",
120    "le_context.gles3.other");
121
122static SHRINK_HWTEST_F(ActsEgl0001TS, TC000857, "dEQP-EGL.functional.render.mul",
123    "ti_context.gles2.rgb565_window");
124
125static SHRINK_HWTEST_F(ActsEgl0001TS, TC000858, "dEQP-EGL.functional.render.mul",
126    "ti_context.gles2.rgb565_pixmap");
127
128static SHRINK_HWTEST_F(ActsEgl0001TS, TC000859, "dEQP-EGL.functional.render.mul",
129    "ti_context.gles2.rgb565_pbuffer");
130
131static SHRINK_HWTEST_F(ActsEgl0001TS, TC000860, "dEQP-EGL.functional.render.mul",
132    "ti_context.gles2.rgb888_window");
133
134static SHRINK_HWTEST_F(ActsEgl0001TS, TC000861, "dEQP-EGL.functional.render.mul",
135    "ti_context.gles2.rgb888_pixmap");
136
137static SHRINK_HWTEST_F(ActsEgl0001TS, TC000862, "dEQP-EGL.functional.render.mul",
138    "ti_context.gles2.rgb888_pbuffer");
139
140static SHRINK_HWTEST_F(ActsEgl0001TS, TC000863, "dEQP-EGL.functional.render.mult",
141    "i_context.gles2.rgba4444_window");
142
143static SHRINK_HWTEST_F(ActsEgl0001TS, TC000864, "dEQP-EGL.functional.render.mult",
144    "i_context.gles2.rgba4444_pixmap");
145
146static SHRINK_HWTEST_F(ActsEgl0001TS, TC000865, "dEQP-EGL.functional.render.mult",
147    "i_context.gles2.rgba4444_pbuffer");
148
149static SHRINK_HWTEST_F(ActsEgl0001TS, TC000866, "dEQP-EGL.functional.render.mult",
150    "i_context.gles2.rgba5551_window");
151
152static SHRINK_HWTEST_F(ActsEgl0001TS, TC000867, "dEQP-EGL.functional.render.mult",
153    "i_context.gles2.rgba5551_pixmap");
154
155static SHRINK_HWTEST_F(ActsEgl0001TS, TC000868, "dEQP-EGL.functional.render.mult",
156    "i_context.gles2.rgba5551_pbuffer");
157
158static SHRINK_HWTEST_F(ActsEgl0001TS, TC000869, "dEQP-EGL.functional.render.mult",
159    "i_context.gles2.rgba8888_window");
160
161static SHRINK_HWTEST_F(ActsEgl0001TS, TC000870, "dEQP-EGL.functional.render.mult",
162    "i_context.gles2.rgba8888_pixmap");
163
164static SHRINK_HWTEST_F(ActsEgl0001TS, TC000871, "dEQP-EGL.functional.render.mult",
165    "i_context.gles2.rgba8888_pbuffer");
166
167static SHRINK_HWTEST_F(ActsEgl0001TS, TC000872, "dEQP-EGL.functional.render.mult",
168    "i_context.gles2.other");
169
170static SHRINK_HWTEST_F(ActsEgl0001TS, TC000873, "dEQP-EGL.functional.render.mul",
171    "ti_context.gles3.rgb565_window");
172
173static SHRINK_HWTEST_F(ActsEgl0001TS, TC000874, "dEQP-EGL.functional.render.mul",
174    "ti_context.gles3.rgb565_pixmap");
175
176static SHRINK_HWTEST_F(ActsEgl0001TS, TC000875, "dEQP-EGL.functional.render.mul",
177    "ti_context.gles3.rgb565_pbuffer");
178
179static SHRINK_HWTEST_F(ActsEgl0001TS, TC000876, "dEQP-EGL.functional.render.mul",
180    "ti_context.gles3.rgb888_window");
181
182static SHRINK_HWTEST_F(ActsEgl0001TS, TC000877, "dEQP-EGL.functional.render.mul",
183    "ti_context.gles3.rgb888_pixmap");
184
185static SHRINK_HWTEST_F(ActsEgl0001TS, TC000878, "dEQP-EGL.functional.render.mul",
186    "ti_context.gles3.rgb888_pbuffer");
187
188static SHRINK_HWTEST_F(ActsEgl0001TS, TC000879, "dEQP-EGL.functional.render.mult",
189    "i_context.gles3.rgba4444_window");
190
191static SHRINK_HWTEST_F(ActsEgl0001TS, TC000880, "dEQP-EGL.functional.render.mult",
192    "i_context.gles3.rgba4444_pixmap");
193
194static SHRINK_HWTEST_F(ActsEgl0001TS, TC000881, "dEQP-EGL.functional.render.mult",
195    "i_context.gles3.rgba4444_pbuffer");
196
197static SHRINK_HWTEST_F(ActsEgl0001TS, TC000882, "dEQP-EGL.functional.render.mult",
198    "i_context.gles3.rgba5551_window");
199
200static SHRINK_HWTEST_F(ActsEgl0001TS, TC000883, "dEQP-EGL.functional.render.mult",
201    "i_context.gles3.rgba5551_pixmap");
202
203static SHRINK_HWTEST_F(ActsEgl0001TS, TC000884, "dEQP-EGL.functional.render.mult",
204    "i_context.gles3.rgba5551_pbuffer");
205
206static SHRINK_HWTEST_F(ActsEgl0001TS, TC000885, "dEQP-EGL.functional.render.mult",
207    "i_context.gles3.rgba8888_window");
208
209static SHRINK_HWTEST_F(ActsEgl0001TS, TC000886, "dEQP-EGL.functional.render.mult",
210    "i_context.gles3.rgba8888_pixmap");
211
212static SHRINK_HWTEST_F(ActsEgl0001TS, TC000887, "dEQP-EGL.functional.render.mult",
213    "i_context.gles3.rgba8888_pbuffer");
214
215static SHRINK_HWTEST_F(ActsEgl0001TS, TC000888, "dEQP-EGL.functional.render.multi_",
216    "context.gles3.other");
217
218static SHRINK_HWTEST_F(ActsEgl0001TS, TC000889, "dEQP-EGL.functional.render.multi_",
219    "context.gles2_gles3.rgb565_window");
220
221static SHRINK_HWTEST_F(ActsEgl0001TS, TC000890, "dEQP-EGL.functional.render.multi_",
222    "context.gles2_gles3.rgb565_pixmap");
223
224static SHRINK_HWTEST_F(ActsEgl0001TS, TC000891, "dEQP-EGL.functional.render.multi_",
225    "context.gles2_gles3.rgb565_pbuffer");
226
227static SHRINK_HWTEST_F(ActsEgl0001TS, TC000892, "dEQP-EGL.functional.render.multi_",
228    "context.gles2_gles3.rgb888_window");
229
230static SHRINK_HWTEST_F(ActsEgl0001TS, TC000893, "dEQP-EGL.functional.render.multi_",
231    "context.gles2_gles3.rgb888_pixmap");
232
233static SHRINK_HWTEST_F(ActsEgl0001TS, TC000894, "dEQP-EGL.functional.render.multi_",
234    "context.gles2_gles3.rgb888_pbuffer");
235
236static SHRINK_HWTEST_F(ActsEgl0001TS, TC000895, "dEQP-EGL.functional.render.multi_c",
237    "ontext.gles2_gles3.rgba4444_window");
238
239static SHRINK_HWTEST_F(ActsEgl0001TS, TC000896, "dEQP-EGL.functional.render.multi_c",
240    "ontext.gles2_gles3.rgba4444_pixmap");
241
242static SHRINK_HWTEST_F(ActsEgl0001TS, TC000897, "dEQP-EGL.functional.render.multi_c",
243    "ontext.gles2_gles3.rgba4444_pbuffer");
244
245static SHRINK_HWTEST_F(ActsEgl0001TS, TC000898, "dEQP-EGL.functional.render.multi_c",
246    "ontext.gles2_gles3.rgba5551_window");
247
248static SHRINK_HWTEST_F(ActsEgl0001TS, TC000899, "dEQP-EGL.functional.render.multi_c",
249    "ontext.gles2_gles3.rgba5551_pixmap");
250
251static SHRINK_HWTEST_F(ActsEgl0001TS, TC000900, "dEQP-EGL.functional.render.multi_c",
252    "ontext.gles2_gles3.rgba5551_pbuffer");
253
254static SHRINK_HWTEST_F(ActsEgl0001TS, TC000901, "dEQP-EGL.functional.render.multi_c",
255    "ontext.gles2_gles3.rgba8888_window");
256
257static SHRINK_HWTEST_F(ActsEgl0001TS, TC000902, "dEQP-EGL.functional.render.multi_c",
258    "ontext.gles2_gles3.rgba8888_pixmap");
259
260static SHRINK_HWTEST_F(ActsEgl0001TS, TC000903, "dEQP-EGL.functional.render.multi_c",
261    "ontext.gles2_gles3.rgba8888_pbuffer");
262
263static SHRINK_HWTEST_F(ActsEgl0001TS, TC000904, "dEQP-EGL.functional.render.multi_c",
264    "ontext.gles2_gles3.other");
265
266static SHRINK_HWTEST_F(ActsEgl0001TS, TC000905, "dEQP-EGL.functional.render.multi_th",
267    "read.gles2.rgb565_window");
268
269static SHRINK_HWTEST_F(ActsEgl0001TS, TC000906, "dEQP-EGL.functional.render.multi_th",
270    "read.gles2.rgb565_pixmap");
271
272static SHRINK_HWTEST_F(ActsEgl0001TS, TC000907, "dEQP-EGL.functional.render.mul",
273    "ti_thread.gles2.rgb565_pbuffer");
274
275static SHRINK_HWTEST_F(ActsEgl0001TS, TC000908, "dEQP-EGL.functional.render.multi_thr",
276    "ead.gles2.rgb888_window");
277
278static SHRINK_HWTEST_F(ActsEgl0001TS, TC000909, "dEQP-EGL.functional.render.multi_thr",
279    "ead.gles2.rgb888_pixmap");
280
281static SHRINK_HWTEST_F(ActsEgl0001TS, TC000910, "dEQP-EGL.functional.render.mul",
282    "ti_thread.gles2.rgb888_pbuffer");
283
284static SHRINK_HWTEST_F(ActsEgl0001TS, TC000911, "dEQP-EGL.functional.render.mul",
285    "ti_thread.gles2.rgba4444_window");
286
287static SHRINK_HWTEST_F(ActsEgl0001TS, TC000912, "dEQP-EGL.functional.render.mul",
288    "ti_thread.gles2.rgba4444_pixmap");
289
290static SHRINK_HWTEST_F(ActsEgl0001TS, TC000913, "dEQP-EGL.functional.render.mult",
291    "i_thread.gles2.rgba4444_pbuffer");
292
293static SHRINK_HWTEST_F(ActsEgl0001TS, TC000914, "dEQP-EGL.functional.render.mul",
294    "ti_thread.gles2.rgba5551_window");
295
296static SHRINK_HWTEST_F(ActsEgl0001TS, TC000915, "dEQP-EGL.functional.render.mul",
297    "ti_thread.gles2.rgba5551_pixmap");
298
299static SHRINK_HWTEST_F(ActsEgl0001TS, TC000916, "dEQP-EGL.functional.render.mult",
300    "i_thread.gles2.rgba5551_pbuffer");
301
302static SHRINK_HWTEST_F(ActsEgl0001TS, TC000917, "dEQP-EGL.functional.render.mul",
303    "ti_thread.gles2.rgba8888_window");
304
305static SHRINK_HWTEST_F(ActsEgl0001TS, TC000918, "dEQP-EGL.functional.render.mul",
306    "ti_thread.gles2.rgba8888_pixmap");
307
308static SHRINK_HWTEST_F(ActsEgl0001TS, TC000919, "dEQP-EGL.functional.render.mult",
309    "i_thread.gles2.rgba8888_pbuffer");
310
311static SHRINK_HWTEST_F(ActsEgl0001TS, TC000920, "dEQP-EGL.functional.render.multi_thre",
312    "ad.gles2.other");
313
314static SHRINK_HWTEST_F(ActsEgl0001TS, TC000921, "dEQP-EGL.functional.render.multi_thre",
315    "ad.gles3.rgb565_window");
316
317static SHRINK_HWTEST_F(ActsEgl0001TS, TC000922, "dEQP-EGL.functional.render.multi_thre",
318    "ad.gles3.rgb565_pixmap");
319
320static SHRINK_HWTEST_F(ActsEgl0001TS, TC000923, "dEQP-EGL.functional.render.mul",
321    "ti_thread.gles3.rgb565_pbuffer");
322
323static SHRINK_HWTEST_F(ActsEgl0001TS, TC000924, "dEQP-EGL.functional.render.multi_thre",
324    "ad.gles3.rgb888_window");
325
326static SHRINK_HWTEST_F(ActsEgl0001TS, TC000925, "dEQP-EGL.functional.render.multi_thre",
327    "ad.gles3.rgb888_pixmap");
328
329static SHRINK_HWTEST_F(ActsEgl0001TS, TC000926, "dEQP-EGL.functional.render.mul",
330    "ti_thread.gles3.rgb888_pbuffer");
331
332static SHRINK_HWTEST_F(ActsEgl0001TS, TC000927, "dEQP-EGL.functional.render.mul",
333    "ti_thread.gles3.rgba4444_window");
334
335static SHRINK_HWTEST_F(ActsEgl0001TS, TC000928, "dEQP-EGL.functional.render.mul",
336    "ti_thread.gles3.rgba4444_pixmap");
337
338static SHRINK_HWTEST_F(ActsEgl0001TS, TC000929, "dEQP-EGL.functional.render.mult",
339    "i_thread.gles3.rgba4444_pbuffer");
340
341static SHRINK_HWTEST_F(ActsEgl0001TS, TC000930, "dEQP-EGL.functional.render.mul",
342    "ti_thread.gles3.rgba5551_window");
343
344static SHRINK_HWTEST_F(ActsEgl0001TS, TC000931, "dEQP-EGL.functional.render.mul",
345    "ti_thread.gles3.rgba5551_pixmap");
346
347static SHRINK_HWTEST_F(ActsEgl0001TS, TC000932, "dEQP-EGL.functional.render.mult",
348    "i_thread.gles3.rgba5551_pbuffer");
349
350static SHRINK_HWTEST_F(ActsEgl0001TS, TC000933, "dEQP-EGL.functional.render.mul",
351    "ti_thread.gles3.rgba8888_window");
352
353static SHRINK_HWTEST_F(ActsEgl0001TS, TC000934, "dEQP-EGL.functional.render.mul",
354    "ti_thread.gles3.rgba8888_pixmap");
355
356static SHRINK_HWTEST_F(ActsEgl0001TS, TC000935, "dEQP-EGL.functional.render.mult",
357    "i_thread.gles3.rgba8888_pbuffer");
358
359static SHRINK_HWTEST_F(ActsEgl0001TS, TC000936, "dEQP-EGL.functional.render.multi_thre",
360    "ad.gles3.other");
361
362static SHRINK_HWTEST_F(ActsEgl0001TS, TC000937, "dEQP-EGL.functional.render.multi",
363    "_thread.gles2_gles3.rgb565_window");
364
365static SHRINK_HWTEST_F(ActsEgl0001TS, TC000938, "dEQP-EGL.functional.render.multi",
366    "_thread.gles2_gles3.rgb565_pixmap");
367
368static SHRINK_HWTEST_F(ActsEgl0001TS, TC000939, "dEQP-EGL.functional.render.multi_",
369    "thread.gles2_gles3.rgb565_pbuffer");
370
371static SHRINK_HWTEST_F(ActsEgl0001TS, TC000940, "dEQP-EGL.functional.render.multi",
372    "_thread.gles2_gles3.rgb888_window");
373
374static SHRINK_HWTEST_F(ActsEgl0001TS, TC000941, "dEQP-EGL.functional.render.multi",
375    "_thread.gles2_gles3.rgb888_pixmap");
376
377static SHRINK_HWTEST_F(ActsEgl0001TS, TC000942, "dEQP-EGL.functional.render.multi_",
378    "thread.gles2_gles3.rgb888_pbuffer");
379
380static SHRINK_HWTEST_F(ActsEgl0001TS, TC000943, "dEQP-EGL.functional.render.multi_",
381    "thread.gles2_gles3.rgba4444_window");
382
383static SHRINK_HWTEST_F(ActsEgl0001TS, TC000944, "dEQP-EGL.functional.render.multi_",
384    "thread.gles2_gles3.rgba4444_pixmap");
385
386static SHRINK_HWTEST_F(ActsEgl0001TS, TC000945, "dEQP-EGL.functional.render.multi_t",
387    "hread.gles2_gles3.rgba4444_pbuffer");
388
389static SHRINK_HWTEST_F(ActsEgl0001TS, TC000946, "dEQP-EGL.functional.render.multi_",
390    "thread.gles2_gles3.rgba5551_window");
391
392static SHRINK_HWTEST_F(ActsEgl0001TS, TC000947, "dEQP-EGL.functional.render.multi_",
393    "thread.gles2_gles3.rgba5551_pixmap");
394
395static SHRINK_HWTEST_F(ActsEgl0001TS, TC000948, "dEQP-EGL.functional.render.multi_t",
396    "hread.gles2_gles3.rgba5551_pbuffer");
397
398static SHRINK_HWTEST_F(ActsEgl0001TS, TC000949, "dEQP-EGL.functional.render.multi_",
399    "thread.gles2_gles3.rgba8888_window");
400
401static SHRINK_HWTEST_F(ActsEgl0001TS, TC000950, "dEQP-EGL.functional.render.multi_",
402    "thread.gles2_gles3.rgba8888_pixmap");
403
404static SHRINK_HWTEST_F(ActsEgl0001TS, TC000951, "dEQP-EGL.functional.render.multi_t",
405    "hread.gles2_gles3.rgba8888_pbuffer");
406
407static SHRINK_HWTEST_F(ActsEgl0001TS, TC000952, "dEQP-EGL.functional.render.multi_thre",
408    "ad.gles2_gles3.other");
409