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_024327,
27         "dEQP-GLES3.functional.texture.filter",
28         "ing.2d_array.formats.rgba16f_nearest");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024328,
31         "dEQP-GLES3.functional.texture.filte",
32         "ring.2d_array.formats.rgba16f_linear");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024329,
35         "dEQP-GLES3.functional.texture.filtering.2d_",
36         "array.formats.rgba16f_nearest_mipmap_nearest");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024330,
39         "dEQP-GLES3.functional.texture.filtering.2d_",
40         "array.formats.rgba16f_linear_mipmap_nearest");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024331,
43         "dEQP-GLES3.functional.texture.filtering.2d_",
44         "array.formats.rgba16f_nearest_mipmap_linear");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024332,
47         "dEQP-GLES3.functional.texture.filtering.2d",
48         "_array.formats.rgba16f_linear_mipmap_linear");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024333,
51         "dEQP-GLES3.functional.texture.filtering",
52         ".2d_array.formats.r11f_g11f_b10f_nearest");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024334,
55         "dEQP-GLES3.functional.texture.filtering",
56         ".2d_array.formats.r11f_g11f_b10f_linear");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024335,
59         "dEQP-GLES3.functional.texture.filtering.2d_arra",
60         "y.formats.r11f_g11f_b10f_nearest_mipmap_nearest");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024336,
63         "dEQP-GLES3.functional.texture.filtering.2d_arr",
64         "ay.formats.r11f_g11f_b10f_linear_mipmap_nearest");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024337,
67         "dEQP-GLES3.functional.texture.filtering.2d_arr",
68         "ay.formats.r11f_g11f_b10f_nearest_mipmap_linear");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024338,
71         "dEQP-GLES3.functional.texture.filtering.2d_arr",
72         "ay.formats.r11f_g11f_b10f_linear_mipmap_linear");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024339,
75         "dEQP-GLES3.functional.texture.filter",
76         "ing.2d_array.formats.rgb9_e5_nearest");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024340,
79         "dEQP-GLES3.functional.texture.filte",
80         "ring.2d_array.formats.rgb9_e5_linear");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024341,
83         "dEQP-GLES3.functional.texture.filtering.2d_",
84         "array.formats.rgb9_e5_nearest_mipmap_nearest");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024342,
87         "dEQP-GLES3.functional.texture.filtering.2d_",
88         "array.formats.rgb9_e5_linear_mipmap_nearest");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024343,
91         "dEQP-GLES3.functional.texture.filtering.2d_",
92         "array.formats.rgb9_e5_nearest_mipmap_linear");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024344,
95         "dEQP-GLES3.functional.texture.filtering.2d",
96         "_array.formats.rgb9_e5_linear_mipmap_linear");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024345,
99         "dEQP-GLES3.functional.texture.filte",
100         "ring.2d_array.formats.rgba8_nearest");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024346,
103         "dEQP-GLES3.functional.texture.filt",
104         "ering.2d_array.formats.rgba8_linear");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024347,
107         "dEQP-GLES3.functional.texture.filtering.2d",
108         "_array.formats.rgba8_nearest_mipmap_nearest");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024348,
111         "dEQP-GLES3.functional.texture.filtering.2d",
112         "_array.formats.rgba8_linear_mipmap_nearest");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024349,
115         "dEQP-GLES3.functional.texture.filtering.2d",
116         "_array.formats.rgba8_nearest_mipmap_linear");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024350,
119         "dEQP-GLES3.functional.texture.filtering.2",
120         "d_array.formats.rgba8_linear_mipmap_linear");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024351,
123         "dEQP-GLES3.functional.texture.filterin",
124         "g.2d_array.formats.rgba8_snorm_nearest");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024352,
127         "dEQP-GLES3.functional.texture.filteri",
128         "ng.2d_array.formats.rgba8_snorm_linear");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024353,
131         "dEQP-GLES3.functional.texture.filtering.2d_ar",
132         "ray.formats.rgba8_snorm_nearest_mipmap_nearest");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024354,
135         "dEQP-GLES3.functional.texture.filtering.2d_ar",
136         "ray.formats.rgba8_snorm_linear_mipmap_nearest");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024355,
139         "dEQP-GLES3.functional.texture.filtering.2d_ar",
140         "ray.formats.rgba8_snorm_nearest_mipmap_linear");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024356,
143         "dEQP-GLES3.functional.texture.filtering.2d_a",
144         "rray.formats.rgba8_snorm_linear_mipmap_linear");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024357,
147         "dEQP-GLES3.functional.texture.filte",
148         "ring.2d_array.formats.rgb565_nearest");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024358,
151         "dEQP-GLES3.functional.texture.filte",
152         "ring.2d_array.formats.rgb565_linear");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024359,
155         "dEQP-GLES3.functional.texture.filtering.2d_",
156         "array.formats.rgb565_nearest_mipmap_nearest");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024360,
159         "dEQP-GLES3.functional.texture.filtering.2d",
160         "_array.formats.rgb565_linear_mipmap_nearest");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024361,
163         "dEQP-GLES3.functional.texture.filtering.2d",
164         "_array.formats.rgb565_nearest_mipmap_linear");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024362,
167         "dEQP-GLES3.functional.texture.filtering.2d",
168         "_array.formats.rgb565_linear_mipmap_linear");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024363,
171         "dEQP-GLES3.functional.texture.filte",
172         "ring.2d_array.formats.rgba4_nearest");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024364,
175         "dEQP-GLES3.functional.texture.filt",
176         "ering.2d_array.formats.rgba4_linear");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024365,
179         "dEQP-GLES3.functional.texture.filtering.2d",
180         "_array.formats.rgba4_nearest_mipmap_nearest");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024366,
183         "dEQP-GLES3.functional.texture.filtering.2d",
184         "_array.formats.rgba4_linear_mipmap_nearest");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024367,
187         "dEQP-GLES3.functional.texture.filtering.2d",
188         "_array.formats.rgba4_nearest_mipmap_linear");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024368,
191         "dEQP-GLES3.functional.texture.filtering.2",
192         "d_array.formats.rgba4_linear_mipmap_linear");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024369,
195         "dEQP-GLES3.functional.texture.filter",
196         "ing.2d_array.formats.rgb5_a1_nearest");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024370,
199         "dEQP-GLES3.functional.texture.filte",
200         "ring.2d_array.formats.rgb5_a1_linear");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024371,
203         "dEQP-GLES3.functional.texture.filtering.2d_",
204         "array.formats.rgb5_a1_nearest_mipmap_nearest");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024372,
207         "dEQP-GLES3.functional.texture.filtering.2d_",
208         "array.formats.rgb5_a1_linear_mipmap_nearest");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024373,
211         "dEQP-GLES3.functional.texture.filtering.2d_",
212         "array.formats.rgb5_a1_nearest_mipmap_linear");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024374,
215         "dEQP-GLES3.functional.texture.filtering.2d",
216         "_array.formats.rgb5_a1_linear_mipmap_linear");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024375,
219         "dEQP-GLES3.functional.texture.filterin",
220         "g.2d_array.formats.srgb8_alpha8_nearest");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024376,
223         "dEQP-GLES3.functional.texture.filterin",
224         "g.2d_array.formats.srgb8_alpha8_linear");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024377,
227         "dEQP-GLES3.functional.texture.filtering.2d_arr",
228         "ay.formats.srgb8_alpha8_nearest_mipmap_nearest");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024378,
231         "dEQP-GLES3.functional.texture.filtering.2d_ar",
232         "ray.formats.srgb8_alpha8_linear_mipmap_nearest");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024379,
235         "dEQP-GLES3.functional.texture.filtering.2d_ar",
236         "ray.formats.srgb8_alpha8_nearest_mipmap_linear");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024380,
239         "dEQP-GLES3.functional.texture.filtering.2d_ar",
240         "ray.formats.srgb8_alpha8_linear_mipmap_linear");
241 
242 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024381,
243         "dEQP-GLES3.functional.texture.filter",
244         "ing.2d_array.formats.srgb_r8_nearest");
245 
246 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024382,
247         "dEQP-GLES3.functional.texture.filte",
248         "ring.2d_array.formats.srgb_r8_linear");
249 
250 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024383,
251         "dEQP-GLES3.functional.texture.filtering.2d_",
252         "array.formats.srgb_r8_nearest_mipmap_nearest");
253 
254 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024384,
255         "dEQP-GLES3.functional.texture.filtering.2d_",
256         "array.formats.srgb_r8_linear_mipmap_nearest");
257 
258 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024385,
259         "dEQP-GLES3.functional.texture.filtering.2d_",
260         "array.formats.srgb_r8_nearest_mipmap_linear");
261 
262 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024386,
263         "dEQP-GLES3.functional.texture.filtering.2d",
264         "_array.formats.srgb_r8_linear_mipmap_linear");
265 
266 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024387,
267         "dEQP-GLES3.functional.texture.filter",
268         "ing.2d_array.formats.srgb_rg8_nearest");
269 
270 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024388,
271         "dEQP-GLES3.functional.texture.filter",
272         "ing.2d_array.formats.srgb_rg8_linear");
273 
274 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024389,
275         "dEQP-GLES3.functional.texture.filtering.2d_a",
276         "rray.formats.srgb_rg8_nearest_mipmap_nearest");
277 
278 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024390,
279         "dEQP-GLES3.functional.texture.filtering.2d_",
280         "array.formats.srgb_rg8_linear_mipmap_nearest");
281 
282 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024391,
283         "dEQP-GLES3.functional.texture.filtering.2d_",
284         "array.formats.srgb_rg8_nearest_mipmap_linear");
285 
286 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024392,
287         "dEQP-GLES3.functional.texture.filtering.2d_",
288         "array.formats.srgb_rg8_linear_mipmap_linear");
289 
290 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024393,
291         "dEQP-GLES3.functional.texture.filter",
292         "ing.2d_array.formats.rgb10_a2_nearest");
293 
294 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024394,
295         "dEQP-GLES3.functional.texture.filter",
296         "ing.2d_array.formats.rgb10_a2_linear");
297 
298 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024395,
299         "dEQP-GLES3.functional.texture.filtering.2d_a",
300         "rray.formats.rgb10_a2_nearest_mipmap_nearest");
301 
302 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024396,
303         "dEQP-GLES3.functional.texture.filtering.2d_",
304         "array.formats.rgb10_a2_linear_mipmap_nearest");
305 
306 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024397,
307         "dEQP-GLES3.functional.texture.filtering.2d_",
308         "array.formats.rgb10_a2_nearest_mipmap_linear");
309 
310 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024398,
311         "dEQP-GLES3.functional.texture.filtering.2d_",
312         "array.formats.rgb10_a2_linear_mipmap_linear");
313