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 "../Deqpgles31BaseFunc.h"
19 #include "../ActsDeqpgles310006TestSuite.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(ActsDeqpgles310006TestSuite, TestCase_005055,
27         "dEQP-GLES31.functional.shaders.helpe",
28         "r_invocation.derivate.triangles_dfdx");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005056,
31         "dEQP-GLES31.functional.shaders.helpe",
32         "r_invocation.derivate.triangles_dfdy");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005057,
35         "dEQP-GLES31.functional.shaders.helper",
36         "_invocation.derivate.triangles_fwidth");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005058,
39         "dEQP-GLES31.functional.shaders.hel",
40         "per_invocation.derivate.lines_dfdx");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005059,
43         "dEQP-GLES31.functional.shaders.hel",
44         "per_invocation.derivate.lines_dfdy");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005060,
47         "dEQP-GLES31.functional.shaders.help",
48         "er_invocation.derivate.lines_fwidth");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005061,
51         "dEQP-GLES31.functional.shaders.helpe",
52         "r_invocation.derivate.wide_lines_dfdx");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005062,
55         "dEQP-GLES31.functional.shaders.helpe",
56         "r_invocation.derivate.wide_lines_dfdy");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005063,
59         "dEQP-GLES31.functional.shaders.helper",
60         "_invocation.derivate.wide_lines_fwidth");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005064,
63         "dEQP-GLES31.functional.shaders.hel",
64         "per_invocation.derivate.points_dfdx");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005065,
67         "dEQP-GLES31.functional.shaders.hel",
68         "per_invocation.derivate.points_dfdy");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005066,
71         "dEQP-GLES31.functional.shaders.help",
72         "er_invocation.derivate.points_fwidth");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005067,
75         "dEQP-GLES31.functional.shaders.helper",
76         "_invocation.derivate.wide_points_dfdx");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005068,
79         "dEQP-GLES31.functional.shaders.helper",
80         "_invocation.derivate.wide_points_dfdy");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005069,
83         "dEQP-GLES31.functional.shaders.helper_",
84         "invocation.derivate.wide_points_fwidth");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005070,
87         "dEQP-GLES31.functional.shaders.helper_inv",
88         "ocation.derivate.triangles_4_samples_dfdx");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005071,
91         "dEQP-GLES31.functional.shaders.helper_inv",
92         "ocation.derivate.triangles_4_samples_dfdy");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005072,
95         "dEQP-GLES31.functional.shaders.helper_invo",
96         "cation.derivate.triangles_4_samples_fwidth");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005073,
99         "dEQP-GLES31.functional.shaders.helper_i",
100         "nvocation.derivate.lines_4_samples_dfdx");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005074,
103         "dEQP-GLES31.functional.shaders.helper_i",
104         "nvocation.derivate.lines_4_samples_dfdy");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005075,
107         "dEQP-GLES31.functional.shaders.helper_in",
108         "vocation.derivate.lines_4_samples_fwidth");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005076,
111         "dEQP-GLES31.functional.shaders.helper_inv",
112         "ocation.derivate.wide_lines_4_samples_dfdx");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005077,
115         "dEQP-GLES31.functional.shaders.helper_inv",
116         "ocation.derivate.wide_lines_4_samples_dfdy");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005078,
119         "dEQP-GLES31.functional.shaders.helper_invo",
120         "cation.derivate.wide_lines_4_samples_fwidth");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005079,
123         "dEQP-GLES31.functional.shaders.helper_i",
124         "nvocation.derivate.points_4_samples_dfdx");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005080,
127         "dEQP-GLES31.functional.shaders.helper_i",
128         "nvocation.derivate.points_4_samples_dfdy");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005081,
131         "dEQP-GLES31.functional.shaders.helper_in",
132         "vocation.derivate.points_4_samples_fwidth");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005082,
135         "dEQP-GLES31.functional.shaders.helper_invo",
136         "cation.derivate.wide_points_4_samples_dfdx");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005083,
139         "dEQP-GLES31.functional.shaders.helper_invo",
140         "cation.derivate.wide_points_4_samples_dfdy");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005084,
143         "dEQP-GLES31.functional.shaders.helper_invoc",
144         "ation.derivate.wide_points_4_samples_fwidth");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005085,
147         "dEQP-GLES31.functional.shaders.helper_inv",
148         "ocation.derivate.triangles_8_samples_dfdx");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005086,
151         "dEQP-GLES31.functional.shaders.helper_inv",
152         "ocation.derivate.triangles_8_samples_dfdy");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005087,
155         "dEQP-GLES31.functional.shaders.helper_invo",
156         "cation.derivate.triangles_8_samples_fwidth");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005088,
159         "dEQP-GLES31.functional.shaders.helper_i",
160         "nvocation.derivate.lines_8_samples_dfdx");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005089,
163         "dEQP-GLES31.functional.shaders.helper_i",
164         "nvocation.derivate.lines_8_samples_dfdy");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005090,
167         "dEQP-GLES31.functional.shaders.helper_in",
168         "vocation.derivate.lines_8_samples_fwidth");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005091,
171         "dEQP-GLES31.functional.shaders.helper_inv",
172         "ocation.derivate.wide_lines_8_samples_dfdx");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005092,
175         "dEQP-GLES31.functional.shaders.helper_inv",
176         "ocation.derivate.wide_lines_8_samples_dfdy");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005093,
179         "dEQP-GLES31.functional.shaders.helper_invo",
180         "cation.derivate.wide_lines_8_samples_fwidth");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005094,
183         "dEQP-GLES31.functional.shaders.helper_i",
184         "nvocation.derivate.points_8_samples_dfdx");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005095,
187         "dEQP-GLES31.functional.shaders.helper_i",
188         "nvocation.derivate.points_8_samples_dfdy");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005096,
191         "dEQP-GLES31.functional.shaders.helper_in",
192         "vocation.derivate.points_8_samples_fwidth");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005097,
195         "dEQP-GLES31.functional.shaders.helper_invo",
196         "cation.derivate.wide_points_8_samples_dfdx");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005098,
199         "dEQP-GLES31.functional.shaders.helper_invo",
200         "cation.derivate.wide_points_8_samples_dfdy");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005099,
203         "dEQP-GLES31.functional.shaders.helper_invoc",
204         "ation.derivate.wide_points_8_samples_fwidth");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005100,
207         "dEQP-GLES31.functional.shaders.helper_invo",
208         "cation.derivate.triangles_max_samples_dfdx");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005101,
211         "dEQP-GLES31.functional.shaders.helper_invo",
212         "cation.derivate.triangles_max_samples_dfdy");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005102,
215         "dEQP-GLES31.functional.shaders.helper_invoc",
216         "ation.derivate.triangles_max_samples_fwidth");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005103,
219         "dEQP-GLES31.functional.shaders.helper_in",
220         "vocation.derivate.lines_max_samples_dfdx");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005104,
223         "dEQP-GLES31.functional.shaders.helper_in",
224         "vocation.derivate.lines_max_samples_dfdy");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005105,
227         "dEQP-GLES31.functional.shaders.helper_inv",
228         "ocation.derivate.lines_max_samples_fwidth");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005106,
231         "dEQP-GLES31.functional.shaders.helper_invo",
232         "cation.derivate.wide_lines_max_samples_dfdx");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005107,
235         "dEQP-GLES31.functional.shaders.helper_invo",
236         "cation.derivate.wide_lines_max_samples_dfdy");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005108,
239         "dEQP-GLES31.functional.shaders.helper_invoc",
240         "ation.derivate.wide_lines_max_samples_fwidth");
241 
242 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005109,
243         "dEQP-GLES31.functional.shaders.helper_in",
244         "vocation.derivate.points_max_samples_dfdx");
245 
246 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005110,
247         "dEQP-GLES31.functional.shaders.helper_in",
248         "vocation.derivate.points_max_samples_dfdy");
249 
250 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005111,
251         "dEQP-GLES31.functional.shaders.helper_inv",
252         "ocation.derivate.points_max_samples_fwidth");
253 
254 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005112,
255         "dEQP-GLES31.functional.shaders.helper_invoc",
256         "ation.derivate.wide_points_max_samples_dfdx");
257 
258 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005113,
259         "dEQP-GLES31.functional.shaders.helper_invoc",
260         "ation.derivate.wide_points_max_samples_dfdy");
261 
262 static SHRINK_HWTEST_F(ActsDeqpgles310006TestSuite, TestCase_005114,
263         "dEQP-GLES31.functional.shaders.helper_invoca",
264         "tion.derivate.wide_points_max_samples_fwidth");
265