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 "../ActsDeqpgles30024TestSuite.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(ActsDeqpgles30024TestSuite, TestCase_023887,
27         "dEQP-GLES3.functional.texture.fil",
28         "tering.2d.formats.rgba16f_nearest");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023888,
31         "dEQP-GLES3.functional.texture.fi",
32         "ltering.2d.formats.rgba16f_linear");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023889,
35         "dEQP-GLES3.functional.texture.filtering.",
36         "2d.formats.rgba16f_nearest_mipmap_nearest");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023890,
39         "dEQP-GLES3.functional.texture.filtering.",
40         "2d.formats.rgba16f_linear_mipmap_nearest");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023891,
43         "dEQP-GLES3.functional.texture.filtering.",
44         "2d.formats.rgba16f_nearest_mipmap_linear");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023892,
47         "dEQP-GLES3.functional.texture.filtering",
48         ".2d.formats.rgba16f_linear_mipmap_linear");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023893,
51         "dEQP-GLES3.functional.texture.filter",
52         "ing.2d.formats.r11f_g11f_b10f_nearest");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023894,
55         "dEQP-GLES3.functional.texture.filter",
56         "ing.2d.formats.r11f_g11f_b10f_linear");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023895,
59         "dEQP-GLES3.functional.texture.filtering.2d.f",
60         "ormats.r11f_g11f_b10f_nearest_mipmap_nearest");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023896,
63         "dEQP-GLES3.functional.texture.filtering.2d.",
64         "formats.r11f_g11f_b10f_linear_mipmap_nearest");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023897,
67         "dEQP-GLES3.functional.texture.filtering.2d.",
68         "formats.r11f_g11f_b10f_nearest_mipmap_linear");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023898,
71         "dEQP-GLES3.functional.texture.filtering.2d.",
72         "formats.r11f_g11f_b10f_linear_mipmap_linear");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023899,
75         "dEQP-GLES3.functional.texture.fil",
76         "tering.2d.formats.rgb9_e5_nearest");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023900,
79         "dEQP-GLES3.functional.texture.fi",
80         "ltering.2d.formats.rgb9_e5_linear");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023901,
83         "dEQP-GLES3.functional.texture.filtering.",
84         "2d.formats.rgb9_e5_nearest_mipmap_nearest");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023902,
87         "dEQP-GLES3.functional.texture.filtering.",
88         "2d.formats.rgb9_e5_linear_mipmap_nearest");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023903,
91         "dEQP-GLES3.functional.texture.filtering.",
92         "2d.formats.rgb9_e5_nearest_mipmap_linear");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023904,
95         "dEQP-GLES3.functional.texture.filtering",
96         ".2d.formats.rgb9_e5_linear_mipmap_linear");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023905,
99         "dEQP-GLES3.functional.texture.fi",
100         "ltering.2d.formats.rgba8_nearest");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023906,
103         "dEQP-GLES3.functional.texture.f",
104         "iltering.2d.formats.rgba8_linear");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023907,
107         "dEQP-GLES3.functional.texture.filtering",
108         ".2d.formats.rgba8_nearest_mipmap_nearest");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023908,
111         "dEQP-GLES3.functional.texture.filtering",
112         ".2d.formats.rgba8_linear_mipmap_nearest");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023909,
115         "dEQP-GLES3.functional.texture.filtering",
116         ".2d.formats.rgba8_nearest_mipmap_linear");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023910,
119         "dEQP-GLES3.functional.texture.filterin",
120         "g.2d.formats.rgba8_linear_mipmap_linear");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023911,
123         "dEQP-GLES3.functional.texture.filte",
124         "ring.2d.formats.rgba8_snorm_nearest");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023912,
127         "dEQP-GLES3.functional.texture.filt",
128         "ering.2d.formats.rgba8_snorm_linear");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023913,
131         "dEQP-GLES3.functional.texture.filtering.2d",
132         ".formats.rgba8_snorm_nearest_mipmap_nearest");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023914,
135         "dEQP-GLES3.functional.texture.filtering.2d",
136         ".formats.rgba8_snorm_linear_mipmap_nearest");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023915,
139         "dEQP-GLES3.functional.texture.filtering.2d",
140         ".formats.rgba8_snorm_nearest_mipmap_linear");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023916,
143         "dEQP-GLES3.functional.texture.filtering.2",
144         "d.formats.rgba8_snorm_linear_mipmap_linear");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023917,
147         "dEQP-GLES3.functional.texture.fi",
148         "ltering.2d.formats.rgb565_nearest");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023918,
151         "dEQP-GLES3.functional.texture.fi",
152         "ltering.2d.formats.rgb565_linear");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023919,
155         "dEQP-GLES3.functional.texture.filtering.",
156         "2d.formats.rgb565_nearest_mipmap_nearest");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023920,
159         "dEQP-GLES3.functional.texture.filtering",
160         ".2d.formats.rgb565_linear_mipmap_nearest");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023921,
163         "dEQP-GLES3.functional.texture.filtering",
164         ".2d.formats.rgb565_nearest_mipmap_linear");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023922,
167         "dEQP-GLES3.functional.texture.filtering",
168         ".2d.formats.rgb565_linear_mipmap_linear");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023923,
171         "dEQP-GLES3.functional.texture.fi",
172         "ltering.2d.formats.rgba4_nearest");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023924,
175         "dEQP-GLES3.functional.texture.f",
176         "iltering.2d.formats.rgba4_linear");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023925,
179         "dEQP-GLES3.functional.texture.filtering",
180         ".2d.formats.rgba4_nearest_mipmap_nearest");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023926,
183         "dEQP-GLES3.functional.texture.filtering",
184         ".2d.formats.rgba4_linear_mipmap_nearest");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023927,
187         "dEQP-GLES3.functional.texture.filtering",
188         ".2d.formats.rgba4_nearest_mipmap_linear");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023928,
191         "dEQP-GLES3.functional.texture.filterin",
192         "g.2d.formats.rgba4_linear_mipmap_linear");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023929,
195         "dEQP-GLES3.functional.texture.fil",
196         "tering.2d.formats.rgb5_a1_nearest");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023930,
199         "dEQP-GLES3.functional.texture.fi",
200         "ltering.2d.formats.rgb5_a1_linear");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023931,
203         "dEQP-GLES3.functional.texture.filtering.",
204         "2d.formats.rgb5_a1_nearest_mipmap_nearest");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023932,
207         "dEQP-GLES3.functional.texture.filtering.",
208         "2d.formats.rgb5_a1_linear_mipmap_nearest");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023933,
211         "dEQP-GLES3.functional.texture.filtering.",
212         "2d.formats.rgb5_a1_nearest_mipmap_linear");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023934,
215         "dEQP-GLES3.functional.texture.filtering",
216         ".2d.formats.rgb5_a1_linear_mipmap_linear");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023935,
219         "dEQP-GLES3.functional.texture.filte",
220         "ring.2d.formats.srgb8_alpha8_nearest");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023936,
223         "dEQP-GLES3.functional.texture.filte",
224         "ring.2d.formats.srgb8_alpha8_linear");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023937,
227         "dEQP-GLES3.functional.texture.filtering.2d.",
228         "formats.srgb8_alpha8_nearest_mipmap_nearest");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023938,
231         "dEQP-GLES3.functional.texture.filtering.2d",
232         ".formats.srgb8_alpha8_linear_mipmap_nearest");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023939,
235         "dEQP-GLES3.functional.texture.filtering.2d",
236         ".formats.srgb8_alpha8_nearest_mipmap_linear");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023940,
239         "dEQP-GLES3.functional.texture.filtering.2d",
240         ".formats.srgb8_alpha8_linear_mipmap_linear");
241 
242 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023941,
243         "dEQP-GLES3.functional.texture.fil",
244         "tering.2d.formats.srgb_r8_nearest");
245 
246 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023942,
247         "dEQP-GLES3.functional.texture.fi",
248         "ltering.2d.formats.srgb_r8_linear");
249 
250 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023943,
251         "dEQP-GLES3.functional.texture.filtering.",
252         "2d.formats.srgb_r8_nearest_mipmap_nearest");
253 
254 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023944,
255         "dEQP-GLES3.functional.texture.filtering.",
256         "2d.formats.srgb_r8_linear_mipmap_nearest");
257 
258 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023945,
259         "dEQP-GLES3.functional.texture.filtering.",
260         "2d.formats.srgb_r8_nearest_mipmap_linear");
261 
262 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023946,
263         "dEQP-GLES3.functional.texture.filtering",
264         ".2d.formats.srgb_r8_linear_mipmap_linear");
265 
266 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023947,
267         "dEQP-GLES3.functional.texture.fil",
268         "tering.2d.formats.srgb_rg8_nearest");
269 
270 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023948,
271         "dEQP-GLES3.functional.texture.fil",
272         "tering.2d.formats.srgb_rg8_linear");
273 
274 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023949,
275         "dEQP-GLES3.functional.texture.filtering.2",
276         "d.formats.srgb_rg8_nearest_mipmap_nearest");
277 
278 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023950,
279         "dEQP-GLES3.functional.texture.filtering.",
280         "2d.formats.srgb_rg8_linear_mipmap_nearest");
281 
282 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023951,
283         "dEQP-GLES3.functional.texture.filtering.",
284         "2d.formats.srgb_rg8_nearest_mipmap_linear");
285 
286 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023952,
287         "dEQP-GLES3.functional.texture.filtering.",
288         "2d.formats.srgb_rg8_linear_mipmap_linear");
289 
290 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023953,
291         "dEQP-GLES3.functional.texture.fil",
292         "tering.2d.formats.rgb10_a2_nearest");
293 
294 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023954,
295         "dEQP-GLES3.functional.texture.fil",
296         "tering.2d.formats.rgb10_a2_linear");
297 
298 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023955,
299         "dEQP-GLES3.functional.texture.filtering.2",
300         "d.formats.rgb10_a2_nearest_mipmap_nearest");
301 
302 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023956,
303         "dEQP-GLES3.functional.texture.filtering.",
304         "2d.formats.rgb10_a2_linear_mipmap_nearest");
305 
306 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023957,
307         "dEQP-GLES3.functional.texture.filtering.",
308         "2d.formats.rgb10_a2_nearest_mipmap_linear");
309 
310 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023958,
311         "dEQP-GLES3.functional.texture.filtering.",
312         "2d.formats.rgb10_a2_linear_mipmap_linear");
313 
314 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023959,
315         "dEQP-GLES3.functional.texture.filt",
316         "ering.2d.formats.etc1_rgb8_nearest");
317 
318 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023960,
319         "dEQP-GLES3.functional.texture.fil",
320         "tering.2d.formats.etc1_rgb8_linear");
321 
322 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023961,
323         "dEQP-GLES3.functional.texture.filtering.2",
324         "d.formats.etc1_rgb8_nearest_mipmap_nearest");
325 
326 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023962,
327         "dEQP-GLES3.functional.texture.filtering.2",
328         "d.formats.etc1_rgb8_linear_mipmap_nearest");
329 
330 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023963,
331         "dEQP-GLES3.functional.texture.filtering.2",
332         "d.formats.etc1_rgb8_nearest_mipmap_linear");
333 
334 static SHRINK_HWTEST_F(ActsDeqpgles30024TestSuite, TestCase_023964,
335         "dEQP-GLES3.functional.texture.filtering.",
336         "2d.formats.etc1_rgb8_linear_mipmap_linear");
337