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 "../ActsDeqpgles30016TestSuite.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(ActsDeqpgles30016TestSuite, TestCase_015906,
27         "dEQP-GLES3.functional.shaders.matrix.",
28         "unary_addition.lowp_mat2_float_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015907,
31         "dEQP-GLES3.functional.shaders.matrix.u",
32         "nary_addition.lowp_mat2_float_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015908,
35         "dEQP-GLES3.functional.shaders.matrix.u",
36         "nary_addition.mediump_mat2_float_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015909,
39         "dEQP-GLES3.functional.shaders.matrix.un",
40         "ary_addition.mediump_mat2_float_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015910,
43         "dEQP-GLES3.functional.shaders.matrix.",
44         "unary_addition.highp_mat2_float_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015911,
47         "dEQP-GLES3.functional.shaders.matrix.u",
48         "nary_addition.highp_mat2_float_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015912,
51         "dEQP-GLES3.functional.shaders.matrix.u",
52         "nary_addition.lowp_mat2x3_float_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015913,
55         "dEQP-GLES3.functional.shaders.matrix.un",
56         "ary_addition.lowp_mat2x3_float_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015914,
59         "dEQP-GLES3.functional.shaders.matrix.un",
60         "ary_addition.mediump_mat2x3_float_vertex");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015915,
63         "dEQP-GLES3.functional.shaders.matrix.una",
64         "ry_addition.mediump_mat2x3_float_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015916,
67         "dEQP-GLES3.functional.shaders.matrix.u",
68         "nary_addition.highp_mat2x3_float_vertex");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015917,
71         "dEQP-GLES3.functional.shaders.matrix.un",
72         "ary_addition.highp_mat2x3_float_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015918,
75         "dEQP-GLES3.functional.shaders.matrix.u",
76         "nary_addition.lowp_mat2x4_float_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015919,
79         "dEQP-GLES3.functional.shaders.matrix.un",
80         "ary_addition.lowp_mat2x4_float_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015920,
83         "dEQP-GLES3.functional.shaders.matrix.un",
84         "ary_addition.mediump_mat2x4_float_vertex");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015921,
87         "dEQP-GLES3.functional.shaders.matrix.una",
88         "ry_addition.mediump_mat2x4_float_fragment");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015922,
91         "dEQP-GLES3.functional.shaders.matrix.u",
92         "nary_addition.highp_mat2x4_float_vertex");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015923,
95         "dEQP-GLES3.functional.shaders.matrix.un",
96         "ary_addition.highp_mat2x4_float_fragment");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015924,
99         "dEQP-GLES3.functional.shaders.matrix.u",
100         "nary_addition.lowp_mat3x2_float_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015925,
103         "dEQP-GLES3.functional.shaders.matrix.un",
104         "ary_addition.lowp_mat3x2_float_fragment");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015926,
107         "dEQP-GLES3.functional.shaders.matrix.un",
108         "ary_addition.mediump_mat3x2_float_vertex");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015927,
111         "dEQP-GLES3.functional.shaders.matrix.una",
112         "ry_addition.mediump_mat3x2_float_fragment");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015928,
115         "dEQP-GLES3.functional.shaders.matrix.u",
116         "nary_addition.highp_mat3x2_float_vertex");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015929,
119         "dEQP-GLES3.functional.shaders.matrix.un",
120         "ary_addition.highp_mat3x2_float_fragment");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015930,
123         "dEQP-GLES3.functional.shaders.matrix.",
124         "unary_addition.lowp_mat3_float_vertex");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015931,
127         "dEQP-GLES3.functional.shaders.matrix.u",
128         "nary_addition.lowp_mat3_float_fragment");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015932,
131         "dEQP-GLES3.functional.shaders.matrix.u",
132         "nary_addition.mediump_mat3_float_vertex");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015933,
135         "dEQP-GLES3.functional.shaders.matrix.un",
136         "ary_addition.mediump_mat3_float_fragment");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015934,
139         "dEQP-GLES3.functional.shaders.matrix.",
140         "unary_addition.highp_mat3_float_vertex");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015935,
143         "dEQP-GLES3.functional.shaders.matrix.u",
144         "nary_addition.highp_mat3_float_fragment");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015936,
147         "dEQP-GLES3.functional.shaders.matrix.u",
148         "nary_addition.lowp_mat3x4_float_vertex");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015937,
151         "dEQP-GLES3.functional.shaders.matrix.un",
152         "ary_addition.lowp_mat3x4_float_fragment");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015938,
155         "dEQP-GLES3.functional.shaders.matrix.un",
156         "ary_addition.mediump_mat3x4_float_vertex");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015939,
159         "dEQP-GLES3.functional.shaders.matrix.una",
160         "ry_addition.mediump_mat3x4_float_fragment");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015940,
163         "dEQP-GLES3.functional.shaders.matrix.u",
164         "nary_addition.highp_mat3x4_float_vertex");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015941,
167         "dEQP-GLES3.functional.shaders.matrix.un",
168         "ary_addition.highp_mat3x4_float_fragment");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015942,
171         "dEQP-GLES3.functional.shaders.matrix.u",
172         "nary_addition.lowp_mat4x2_float_vertex");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015943,
175         "dEQP-GLES3.functional.shaders.matrix.un",
176         "ary_addition.lowp_mat4x2_float_fragment");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015944,
179         "dEQP-GLES3.functional.shaders.matrix.un",
180         "ary_addition.mediump_mat4x2_float_vertex");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015945,
183         "dEQP-GLES3.functional.shaders.matrix.una",
184         "ry_addition.mediump_mat4x2_float_fragment");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015946,
187         "dEQP-GLES3.functional.shaders.matrix.u",
188         "nary_addition.highp_mat4x2_float_vertex");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015947,
191         "dEQP-GLES3.functional.shaders.matrix.un",
192         "ary_addition.highp_mat4x2_float_fragment");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015948,
195         "dEQP-GLES3.functional.shaders.matrix.u",
196         "nary_addition.lowp_mat4x3_float_vertex");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015949,
199         "dEQP-GLES3.functional.shaders.matrix.un",
200         "ary_addition.lowp_mat4x3_float_fragment");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015950,
203         "dEQP-GLES3.functional.shaders.matrix.un",
204         "ary_addition.mediump_mat4x3_float_vertex");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015951,
207         "dEQP-GLES3.functional.shaders.matrix.una",
208         "ry_addition.mediump_mat4x3_float_fragment");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015952,
211         "dEQP-GLES3.functional.shaders.matrix.u",
212         "nary_addition.highp_mat4x3_float_vertex");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015953,
215         "dEQP-GLES3.functional.shaders.matrix.un",
216         "ary_addition.highp_mat4x3_float_fragment");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015954,
219         "dEQP-GLES3.functional.shaders.matrix.",
220         "unary_addition.lowp_mat4_float_vertex");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015955,
223         "dEQP-GLES3.functional.shaders.matrix.u",
224         "nary_addition.lowp_mat4_float_fragment");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015956,
227         "dEQP-GLES3.functional.shaders.matrix.u",
228         "nary_addition.mediump_mat4_float_vertex");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015957,
231         "dEQP-GLES3.functional.shaders.matrix.un",
232         "ary_addition.mediump_mat4_float_fragment");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015958,
235         "dEQP-GLES3.functional.shaders.matrix.",
236         "unary_addition.highp_mat4_float_vertex");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015959,
239         "dEQP-GLES3.functional.shaders.matrix.u",
240         "nary_addition.highp_mat4_float_fragment");
241