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 "../ActsDeqpgles30023TestSuite.h"
20 #include "shrinkdefine.h"
21 
22 using namespace std;
23 using namespace testing::ext;
24 using namespace OHOS;
25 
26 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022223,
27         "dEQP-GLES3.functional.textur",
28         "e.format.sized.3d.rgba32f_pot");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022224,
31         "dEQP-GLES3.functional.texture",
32         ".format.sized.3d.rgba32f_npot");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022225,
35         "dEQP-GLES3.functional.textur",
36         "e.format.sized.3d.rgba32i_pot");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022226,
39         "dEQP-GLES3.functional.texture",
40         ".format.sized.3d.rgba32i_npot");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022227,
43         "dEQP-GLES3.functional.texture",
44         ".format.sized.3d.rgba32ui_pot");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022228,
47         "dEQP-GLES3.functional.texture",
48         ".format.sized.3d.rgba32ui_npot");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022229,
51         "dEQP-GLES3.functional.textur",
52         "e.format.sized.3d.rgba16f_pot");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022230,
55         "dEQP-GLES3.functional.texture",
56         ".format.sized.3d.rgba16f_npot");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022231,
59         "dEQP-GLES3.functional.textur",
60         "e.format.sized.3d.rgba16i_pot");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022232,
63         "dEQP-GLES3.functional.texture",
64         ".format.sized.3d.rgba16i_npot");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022233,
67         "dEQP-GLES3.functional.texture",
68         ".format.sized.3d.rgba16ui_pot");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022234,
71         "dEQP-GLES3.functional.texture",
72         ".format.sized.3d.rgba16ui_npot");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022235,
75         "dEQP-GLES3.functional.textu",
76         "re.format.sized.3d.rgba8_pot");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022236,
79         "dEQP-GLES3.functional.textur",
80         "e.format.sized.3d.rgba8_npot");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022237,
83         "dEQP-GLES3.functional.textur",
84         "e.format.sized.3d.rgba8i_pot");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022238,
87         "dEQP-GLES3.functional.textur",
88         "e.format.sized.3d.rgba8i_npot");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022239,
91         "dEQP-GLES3.functional.textur",
92         "e.format.sized.3d.rgba8ui_pot");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022240,
95         "dEQP-GLES3.functional.texture",
96         ".format.sized.3d.rgba8ui_npot");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022241,
99         "dEQP-GLES3.functional.texture.f",
100         "ormat.sized.3d.srgb8_alpha8_pot");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022242,
103         "dEQP-GLES3.functional.texture.f",
104         "ormat.sized.3d.srgb8_alpha8_npot");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022243,
107         "dEQP-GLES3.functional.textur",
108         "e.format.sized.3d.srgb_r8_pot");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022244,
111         "dEQP-GLES3.functional.texture",
112         ".format.sized.3d.srgb_r8_npot");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022245,
115         "dEQP-GLES3.functional.texture",
116         ".format.sized.3d.srgb_rg8_pot");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022246,
119         "dEQP-GLES3.functional.texture",
120         ".format.sized.3d.srgb_rg8_npot");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022247,
123         "dEQP-GLES3.functional.texture",
124         ".format.sized.3d.rgb10_a2_pot");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022248,
127         "dEQP-GLES3.functional.texture",
128         ".format.sized.3d.rgb10_a2_npot");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022249,
131         "dEQP-GLES3.functional.texture.",
132         "format.sized.3d.rgb10_a2ui_pot");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022250,
135         "dEQP-GLES3.functional.texture.",
136         "format.sized.3d.rgb10_a2ui_npot");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022251,
139         "dEQP-GLES3.functional.textu",
140         "re.format.sized.3d.rgba4_pot");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022252,
143         "dEQP-GLES3.functional.textur",
144         "e.format.sized.3d.rgba4_npot");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022253,
147         "dEQP-GLES3.functional.textur",
148         "e.format.sized.3d.rgb5_a1_pot");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022254,
151         "dEQP-GLES3.functional.texture",
152         ".format.sized.3d.rgb5_a1_npot");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022255,
155         "dEQP-GLES3.functional.texture.",
156         "format.sized.3d.rgba8_snorm_pot");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022256,
159         "dEQP-GLES3.functional.texture.f",
160         "ormat.sized.3d.rgba8_snorm_npot");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022257,
163         "dEQP-GLES3.functional.textu",
164         "re.format.sized.3d.rgb8_pot");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022258,
167         "dEQP-GLES3.functional.textu",
168         "re.format.sized.3d.rgb8_npot");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022259,
171         "dEQP-GLES3.functional.textur",
172         "e.format.sized.3d.rgb565_pot");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022260,
175         "dEQP-GLES3.functional.textur",
176         "e.format.sized.3d.rgb565_npot");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022261,
179         "dEQP-GLES3.functional.texture.fo",
180         "rmat.sized.3d.r11f_g11f_b10f_pot");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022262,
183         "dEQP-GLES3.functional.texture.fo",
184         "rmat.sized.3d.r11f_g11f_b10f_npot");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022263,
187         "dEQP-GLES3.functional.textur",
188         "e.format.sized.3d.rgb32f_pot");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022264,
191         "dEQP-GLES3.functional.textur",
192         "e.format.sized.3d.rgb32f_npot");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022265,
195         "dEQP-GLES3.functional.textur",
196         "e.format.sized.3d.rgb32i_pot");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022266,
199         "dEQP-GLES3.functional.textur",
200         "e.format.sized.3d.rgb32i_npot");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022267,
203         "dEQP-GLES3.functional.textur",
204         "e.format.sized.3d.rgb32ui_pot");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022268,
207         "dEQP-GLES3.functional.texture",
208         ".format.sized.3d.rgb32ui_npot");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022269,
211         "dEQP-GLES3.functional.textur",
212         "e.format.sized.3d.rgb16f_pot");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022270,
215         "dEQP-GLES3.functional.textur",
216         "e.format.sized.3d.rgb16f_npot");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022271,
219         "dEQP-GLES3.functional.textur",
220         "e.format.sized.3d.rgb16i_pot");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022272,
223         "dEQP-GLES3.functional.textur",
224         "e.format.sized.3d.rgb16i_npot");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022273,
227         "dEQP-GLES3.functional.textur",
228         "e.format.sized.3d.rgb16ui_pot");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022274,
231         "dEQP-GLES3.functional.texture",
232         ".format.sized.3d.rgb16ui_npot");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022275,
235         "dEQP-GLES3.functional.texture.",
236         "format.sized.3d.rgb8_snorm_pot");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022276,
239         "dEQP-GLES3.functional.texture.",
240         "format.sized.3d.rgb8_snorm_npot");
241 
242 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022277,
243         "dEQP-GLES3.functional.textu",
244         "re.format.sized.3d.rgb8i_pot");
245 
246 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022278,
247         "dEQP-GLES3.functional.textur",
248         "e.format.sized.3d.rgb8i_npot");
249 
250 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022279,
251         "dEQP-GLES3.functional.textur",
252         "e.format.sized.3d.rgb8ui_pot");
253 
254 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022280,
255         "dEQP-GLES3.functional.textur",
256         "e.format.sized.3d.rgb8ui_npot");
257 
258 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022281,
259         "dEQP-GLES3.functional.textu",
260         "re.format.sized.3d.srgb8_pot");
261 
262 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022282,
263         "dEQP-GLES3.functional.textur",
264         "e.format.sized.3d.srgb8_npot");
265 
266 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022283,
267         "dEQP-GLES3.functional.textur",
268         "e.format.sized.3d.rgb9_e5_pot");
269 
270 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022284,
271         "dEQP-GLES3.functional.texture",
272         ".format.sized.3d.rgb9_e5_npot");
273 
274 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022285,
275         "dEQP-GLES3.functional.textu",
276         "re.format.sized.3d.rg32f_pot");
277 
278 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022286,
279         "dEQP-GLES3.functional.textur",
280         "e.format.sized.3d.rg32f_npot");
281 
282 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022287,
283         "dEQP-GLES3.functional.textu",
284         "re.format.sized.3d.rg32i_pot");
285 
286 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022288,
287         "dEQP-GLES3.functional.textur",
288         "e.format.sized.3d.rg32i_npot");
289 
290 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022289,
291         "dEQP-GLES3.functional.textur",
292         "e.format.sized.3d.rg32ui_pot");
293 
294 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022290,
295         "dEQP-GLES3.functional.textur",
296         "e.format.sized.3d.rg32ui_npot");
297 
298 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022291,
299         "dEQP-GLES3.functional.textu",
300         "re.format.sized.3d.rg16f_pot");
301 
302 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022292,
303         "dEQP-GLES3.functional.textur",
304         "e.format.sized.3d.rg16f_npot");
305 
306 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022293,
307         "dEQP-GLES3.functional.textu",
308         "re.format.sized.3d.rg16i_pot");
309 
310 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022294,
311         "dEQP-GLES3.functional.textur",
312         "e.format.sized.3d.rg16i_npot");
313 
314 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022295,
315         "dEQP-GLES3.functional.textur",
316         "e.format.sized.3d.rg16ui_pot");
317 
318 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022296,
319         "dEQP-GLES3.functional.textur",
320         "e.format.sized.3d.rg16ui_npot");
321 
322 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022297,
323         "dEQP-GLES3.functional.text",
324         "ure.format.sized.3d.rg8_pot");
325 
326 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022298,
327         "dEQP-GLES3.functional.textu",
328         "re.format.sized.3d.rg8_npot");
329 
330 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022299,
331         "dEQP-GLES3.functional.textu",
332         "re.format.sized.3d.rg8i_pot");
333 
334 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022300,
335         "dEQP-GLES3.functional.textu",
336         "re.format.sized.3d.rg8i_npot");
337 
338 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022301,
339         "dEQP-GLES3.functional.textu",
340         "re.format.sized.3d.rg8ui_pot");
341 
342 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022302,
343         "dEQP-GLES3.functional.textur",
344         "e.format.sized.3d.rg8ui_npot");
345 
346 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022303,
347         "dEQP-GLES3.functional.texture",
348         ".format.sized.3d.rg8_snorm_pot");
349 
350 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022304,
351         "dEQP-GLES3.functional.texture.",
352         "format.sized.3d.rg8_snorm_npot");
353 
354 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022305,
355         "dEQP-GLES3.functional.textu",
356         "re.format.sized.3d.r32f_pot");
357 
358 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022306,
359         "dEQP-GLES3.functional.textu",
360         "re.format.sized.3d.r32f_npot");
361 
362 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022307,
363         "dEQP-GLES3.functional.textu",
364         "re.format.sized.3d.r32i_pot");
365 
366 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022308,
367         "dEQP-GLES3.functional.textu",
368         "re.format.sized.3d.r32i_npot");
369 
370 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022309,
371         "dEQP-GLES3.functional.textu",
372         "re.format.sized.3d.r32ui_pot");
373 
374 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022310,
375         "dEQP-GLES3.functional.textur",
376         "e.format.sized.3d.r32ui_npot");
377 
378 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022311,
379         "dEQP-GLES3.functional.textu",
380         "re.format.sized.3d.r16f_pot");
381 
382 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022312,
383         "dEQP-GLES3.functional.textu",
384         "re.format.sized.3d.r16f_npot");
385 
386 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022313,
387         "dEQP-GLES3.functional.textu",
388         "re.format.sized.3d.r16i_pot");
389 
390 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022314,
391         "dEQP-GLES3.functional.textu",
392         "re.format.sized.3d.r16i_npot");
393 
394 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022315,
395         "dEQP-GLES3.functional.textu",
396         "re.format.sized.3d.r16ui_pot");
397 
398 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022316,
399         "dEQP-GLES3.functional.textur",
400         "e.format.sized.3d.r16ui_npot");
401 
402 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022317,
403         "dEQP-GLES3.functional.text",
404         "ure.format.sized.3d.r8_pot");
405 
406 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022318,
407         "dEQP-GLES3.functional.text",
408         "ure.format.sized.3d.r8_npot");
409 
410 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022319,
411         "dEQP-GLES3.functional.text",
412         "ure.format.sized.3d.r8i_pot");
413 
414 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022320,
415         "dEQP-GLES3.functional.textu",
416         "re.format.sized.3d.r8i_npot");
417 
418 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022321,
419         "dEQP-GLES3.functional.textu",
420         "re.format.sized.3d.r8ui_pot");
421 
422 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022322,
423         "dEQP-GLES3.functional.textu",
424         "re.format.sized.3d.r8ui_npot");
425 
426 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022323,
427         "dEQP-GLES3.functional.texture",
428         ".format.sized.3d.r8_snorm_pot");
429 
430 static SHRINK_HWTEST_F(ActsDeqpgles30023TestSuite, TestCase_022324,
431         "dEQP-GLES3.functional.texture",
432         ".format.sized.3d.r8_snorm_npot");
433