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 "../ActsDeqpgles30025TestSuite.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(ActsDeqpgles30025TestSuite, TestCase_024109,
27         "dEQP-GLES3.functional.texture.filt",
28         "ering.cube.formats.rgba16f_nearest");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024110,
31         "dEQP-GLES3.functional.texture.fil",
32         "tering.cube.formats.rgba16f_linear");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024111,
35         "dEQP-GLES3.functional.texture.filtering.c",
36         "ube.formats.rgba16f_nearest_mipmap_nearest");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024112,
39         "dEQP-GLES3.functional.texture.filtering.c",
40         "ube.formats.rgba16f_linear_mipmap_nearest");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024113,
43         "dEQP-GLES3.functional.texture.filtering.c",
44         "ube.formats.rgba16f_nearest_mipmap_linear");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024114,
47         "dEQP-GLES3.functional.texture.filtering.",
48         "cube.formats.rgba16f_linear_mipmap_linear");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024115,
51         "dEQP-GLES3.functional.texture.filteri",
52         "ng.cube.formats.r11f_g11f_b10f_nearest");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024116,
55         "dEQP-GLES3.functional.texture.filteri",
56         "ng.cube.formats.r11f_g11f_b10f_linear");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024117,
59         "dEQP-GLES3.functional.texture.filtering.cube.",
60         "formats.r11f_g11f_b10f_nearest_mipmap_nearest");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024118,
63         "dEQP-GLES3.functional.texture.filtering.cube",
64         ".formats.r11f_g11f_b10f_linear_mipmap_nearest");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024119,
67         "dEQP-GLES3.functional.texture.filtering.cube",
68         ".formats.r11f_g11f_b10f_nearest_mipmap_linear");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024120,
71         "dEQP-GLES3.functional.texture.filtering.cube",
72         ".formats.r11f_g11f_b10f_linear_mipmap_linear");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024121,
75         "dEQP-GLES3.functional.texture.filt",
76         "ering.cube.formats.rgb9_e5_nearest");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024122,
79         "dEQP-GLES3.functional.texture.fil",
80         "tering.cube.formats.rgb9_e5_linear");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024123,
83         "dEQP-GLES3.functional.texture.filtering.c",
84         "ube.formats.rgb9_e5_nearest_mipmap_nearest");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024124,
87         "dEQP-GLES3.functional.texture.filtering.c",
88         "ube.formats.rgb9_e5_linear_mipmap_nearest");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024125,
91         "dEQP-GLES3.functional.texture.filtering.c",
92         "ube.formats.rgb9_e5_nearest_mipmap_linear");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024126,
95         "dEQP-GLES3.functional.texture.filtering.",
96         "cube.formats.rgb9_e5_linear_mipmap_linear");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024127,
99         "dEQP-GLES3.functional.texture.fil",
100         "tering.cube.formats.rgba8_nearest");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024128,
103         "dEQP-GLES3.functional.texture.fi",
104         "ltering.cube.formats.rgba8_linear");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024129,
107         "dEQP-GLES3.functional.texture.filtering.",
108         "cube.formats.rgba8_nearest_mipmap_nearest");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024130,
111         "dEQP-GLES3.functional.texture.filtering.",
112         "cube.formats.rgba8_linear_mipmap_nearest");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024131,
115         "dEQP-GLES3.functional.texture.filtering.",
116         "cube.formats.rgba8_nearest_mipmap_linear");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024132,
119         "dEQP-GLES3.functional.texture.filtering",
120         ".cube.formats.rgba8_linear_mipmap_linear");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024133,
123         "dEQP-GLES3.functional.texture.filter",
124         "ing.cube.formats.rgba8_snorm_nearest");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024134,
127         "dEQP-GLES3.functional.texture.filte",
128         "ring.cube.formats.rgba8_snorm_linear");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024135,
131         "dEQP-GLES3.functional.texture.filtering.cub",
132         "e.formats.rgba8_snorm_nearest_mipmap_nearest");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024136,
135         "dEQP-GLES3.functional.texture.filtering.cub",
136         "e.formats.rgba8_snorm_linear_mipmap_nearest");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024137,
139         "dEQP-GLES3.functional.texture.filtering.cub",
140         "e.formats.rgba8_snorm_nearest_mipmap_linear");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024138,
143         "dEQP-GLES3.functional.texture.filtering.cu",
144         "be.formats.rgba8_snorm_linear_mipmap_linear");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024139,
147         "dEQP-GLES3.functional.texture.fil",
148         "tering.cube.formats.rgb565_nearest");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024140,
151         "dEQP-GLES3.functional.texture.fil",
152         "tering.cube.formats.rgb565_linear");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024141,
155         "dEQP-GLES3.functional.texture.filtering.c",
156         "ube.formats.rgb565_nearest_mipmap_nearest");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024142,
159         "dEQP-GLES3.functional.texture.filtering.",
160         "cube.formats.rgb565_linear_mipmap_nearest");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024143,
163         "dEQP-GLES3.functional.texture.filtering.",
164         "cube.formats.rgb565_nearest_mipmap_linear");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024144,
167         "dEQP-GLES3.functional.texture.filtering.",
168         "cube.formats.rgb565_linear_mipmap_linear");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024145,
171         "dEQP-GLES3.functional.texture.fil",
172         "tering.cube.formats.rgba4_nearest");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024146,
175         "dEQP-GLES3.functional.texture.fi",
176         "ltering.cube.formats.rgba4_linear");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024147,
179         "dEQP-GLES3.functional.texture.filtering.",
180         "cube.formats.rgba4_nearest_mipmap_nearest");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024148,
183         "dEQP-GLES3.functional.texture.filtering.",
184         "cube.formats.rgba4_linear_mipmap_nearest");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024149,
187         "dEQP-GLES3.functional.texture.filtering.",
188         "cube.formats.rgba4_nearest_mipmap_linear");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024150,
191         "dEQP-GLES3.functional.texture.filtering",
192         ".cube.formats.rgba4_linear_mipmap_linear");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024151,
195         "dEQP-GLES3.functional.texture.filt",
196         "ering.cube.formats.rgb5_a1_nearest");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024152,
199         "dEQP-GLES3.functional.texture.fil",
200         "tering.cube.formats.rgb5_a1_linear");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024153,
203         "dEQP-GLES3.functional.texture.filtering.c",
204         "ube.formats.rgb5_a1_nearest_mipmap_nearest");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024154,
207         "dEQP-GLES3.functional.texture.filtering.c",
208         "ube.formats.rgb5_a1_linear_mipmap_nearest");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024155,
211         "dEQP-GLES3.functional.texture.filtering.c",
212         "ube.formats.rgb5_a1_nearest_mipmap_linear");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024156,
215         "dEQP-GLES3.functional.texture.filtering.",
216         "cube.formats.rgb5_a1_linear_mipmap_linear");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024157,
219         "dEQP-GLES3.functional.texture.filter",
220         "ing.cube.formats.srgb8_alpha8_nearest");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024158,
223         "dEQP-GLES3.functional.texture.filter",
224         "ing.cube.formats.srgb8_alpha8_linear");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024159,
227         "dEQP-GLES3.functional.texture.filtering.cube",
228         ".formats.srgb8_alpha8_nearest_mipmap_nearest");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024160,
231         "dEQP-GLES3.functional.texture.filtering.cub",
232         "e.formats.srgb8_alpha8_linear_mipmap_nearest");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024161,
235         "dEQP-GLES3.functional.texture.filtering.cub",
236         "e.formats.srgb8_alpha8_nearest_mipmap_linear");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024162,
239         "dEQP-GLES3.functional.texture.filtering.cub",
240         "e.formats.srgb8_alpha8_linear_mipmap_linear");
241 
242 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024163,
243         "dEQP-GLES3.functional.texture.filt",
244         "ering.cube.formats.srgb_r8_nearest");
245 
246 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024164,
247         "dEQP-GLES3.functional.texture.fil",
248         "tering.cube.formats.srgb_r8_linear");
249 
250 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024165,
251         "dEQP-GLES3.functional.texture.filtering.c",
252         "ube.formats.srgb_r8_nearest_mipmap_nearest");
253 
254 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024166,
255         "dEQP-GLES3.functional.texture.filtering.c",
256         "ube.formats.srgb_r8_linear_mipmap_nearest");
257 
258 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024167,
259         "dEQP-GLES3.functional.texture.filtering.c",
260         "ube.formats.srgb_r8_nearest_mipmap_linear");
261 
262 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024168,
263         "dEQP-GLES3.functional.texture.filtering.",
264         "cube.formats.srgb_r8_linear_mipmap_linear");
265 
266 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024169,
267         "dEQP-GLES3.functional.texture.filt",
268         "ering.cube.formats.srgb_rg8_nearest");
269 
270 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024170,
271         "dEQP-GLES3.functional.texture.filt",
272         "ering.cube.formats.srgb_rg8_linear");
273 
274 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024171,
275         "dEQP-GLES3.functional.texture.filtering.cu",
276         "be.formats.srgb_rg8_nearest_mipmap_nearest");
277 
278 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024172,
279         "dEQP-GLES3.functional.texture.filtering.c",
280         "ube.formats.srgb_rg8_linear_mipmap_nearest");
281 
282 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024173,
283         "dEQP-GLES3.functional.texture.filtering.c",
284         "ube.formats.srgb_rg8_nearest_mipmap_linear");
285 
286 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024174,
287         "dEQP-GLES3.functional.texture.filtering.c",
288         "ube.formats.srgb_rg8_linear_mipmap_linear");
289 
290 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024175,
291         "dEQP-GLES3.functional.texture.filt",
292         "ering.cube.formats.rgb10_a2_nearest");
293 
294 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024176,
295         "dEQP-GLES3.functional.texture.filt",
296         "ering.cube.formats.rgb10_a2_linear");
297 
298 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024177,
299         "dEQP-GLES3.functional.texture.filtering.cu",
300         "be.formats.rgb10_a2_nearest_mipmap_nearest");
301 
302 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024178,
303         "dEQP-GLES3.functional.texture.filtering.c",
304         "ube.formats.rgb10_a2_linear_mipmap_nearest");
305 
306 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024179,
307         "dEQP-GLES3.functional.texture.filtering.c",
308         "ube.formats.rgb10_a2_nearest_mipmap_linear");
309 
310 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024180,
311         "dEQP-GLES3.functional.texture.filtering.c",
312         "ube.formats.rgb10_a2_linear_mipmap_linear");
313 
314 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024181,
315         "dEQP-GLES3.functional.texture.filte",
316         "ring.cube.formats.etc1_rgb8_nearest");
317 
318 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024182,
319         "dEQP-GLES3.functional.texture.filt",
320         "ering.cube.formats.etc1_rgb8_linear");
321 
322 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024183,
323         "dEQP-GLES3.functional.texture.filtering.cu",
324         "be.formats.etc1_rgb8_nearest_mipmap_nearest");
325 
326 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024184,
327         "dEQP-GLES3.functional.texture.filtering.cu",
328         "be.formats.etc1_rgb8_linear_mipmap_nearest");
329 
330 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024185,
331         "dEQP-GLES3.functional.texture.filtering.cu",
332         "be.formats.etc1_rgb8_nearest_mipmap_linear");
333 
334 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024186,
335         "dEQP-GLES3.functional.texture.filtering.c",
336         "ube.formats.etc1_rgb8_linear_mipmap_linear");
337