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
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015708,
27        "dEQP-GLES3.functional.shaders.matrix.mat",
28        "rixcompmult.dynamic.lowp_mat2_mat2_vertex");
29
30static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015709,
31        "dEQP-GLES3.functional.shaders.matrix.matr",
32        "ixcompmult.dynamic.lowp_mat2_mat2_fragment");
33
34static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015710,
35        "dEQP-GLES3.functional.shaders.matrix.matri",
36        "xcompmult.dynamic.mediump_mat2_mat2_vertex");
37
38static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015711,
39        "dEQP-GLES3.functional.shaders.matrix.matrix",
40        "compmult.dynamic.mediump_mat2_mat2_fragment");
41
42static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015712,
43        "dEQP-GLES3.functional.shaders.matrix.matr",
44        "ixcompmult.dynamic.highp_mat2_mat2_vertex");
45
46static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015713,
47        "dEQP-GLES3.functional.shaders.matrix.matri",
48        "xcompmult.dynamic.highp_mat2_mat2_fragment");
49
50static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015714,
51        "dEQP-GLES3.functional.shaders.matrix.matri",
52        "xcompmult.dynamic.lowp_mat2x3_mat2x3_vertex");
53
54static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015715,
55        "dEQP-GLES3.functional.shaders.matrix.matrix",
56        "compmult.dynamic.lowp_mat2x3_mat2x3_fragment");
57
58static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015716,
59        "dEQP-GLES3.functional.shaders.matrix.matrixc",
60        "ompmult.dynamic.mediump_mat2x3_mat2x3_vertex");
61
62static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015717,
63        "dEQP-GLES3.functional.shaders.matrix.matrixco",
64        "mpmult.dynamic.mediump_mat2x3_mat2x3_fragment");
65
66static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015718,
67        "dEQP-GLES3.functional.shaders.matrix.matrix",
68        "compmult.dynamic.highp_mat2x3_mat2x3_vertex");
69
70static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015719,
71        "dEQP-GLES3.functional.shaders.matrix.matrixc",
72        "ompmult.dynamic.highp_mat2x3_mat2x3_fragment");
73
74static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015720,
75        "dEQP-GLES3.functional.shaders.matrix.matri",
76        "xcompmult.dynamic.lowp_mat2x4_mat2x4_vertex");
77
78static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015721,
79        "dEQP-GLES3.functional.shaders.matrix.matrix",
80        "compmult.dynamic.lowp_mat2x4_mat2x4_fragment");
81
82static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015722,
83        "dEQP-GLES3.functional.shaders.matrix.matrixc",
84        "ompmult.dynamic.mediump_mat2x4_mat2x4_vertex");
85
86static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015723,
87        "dEQP-GLES3.functional.shaders.matrix.matrixco",
88        "mpmult.dynamic.mediump_mat2x4_mat2x4_fragment");
89
90static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015724,
91        "dEQP-GLES3.functional.shaders.matrix.matrix",
92        "compmult.dynamic.highp_mat2x4_mat2x4_vertex");
93
94static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015725,
95        "dEQP-GLES3.functional.shaders.matrix.matrixc",
96        "ompmult.dynamic.highp_mat2x4_mat2x4_fragment");
97
98static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015726,
99        "dEQP-GLES3.functional.shaders.matrix.matri",
100        "xcompmult.dynamic.lowp_mat3x2_mat3x2_vertex");
101
102static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015727,
103        "dEQP-GLES3.functional.shaders.matrix.matrix",
104        "compmult.dynamic.lowp_mat3x2_mat3x2_fragment");
105
106static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015728,
107        "dEQP-GLES3.functional.shaders.matrix.matrixc",
108        "ompmult.dynamic.mediump_mat3x2_mat3x2_vertex");
109
110static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015729,
111        "dEQP-GLES3.functional.shaders.matrix.matrixco",
112        "mpmult.dynamic.mediump_mat3x2_mat3x2_fragment");
113
114static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015730,
115        "dEQP-GLES3.functional.shaders.matrix.matrix",
116        "compmult.dynamic.highp_mat3x2_mat3x2_vertex");
117
118static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015731,
119        "dEQP-GLES3.functional.shaders.matrix.matrixc",
120        "ompmult.dynamic.highp_mat3x2_mat3x2_fragment");
121
122static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015732,
123        "dEQP-GLES3.functional.shaders.matrix.mat",
124        "rixcompmult.dynamic.lowp_mat3_mat3_vertex");
125
126static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015733,
127        "dEQP-GLES3.functional.shaders.matrix.matr",
128        "ixcompmult.dynamic.lowp_mat3_mat3_fragment");
129
130static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015734,
131        "dEQP-GLES3.functional.shaders.matrix.matri",
132        "xcompmult.dynamic.mediump_mat3_mat3_vertex");
133
134static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015735,
135        "dEQP-GLES3.functional.shaders.matrix.matrix",
136        "compmult.dynamic.mediump_mat3_mat3_fragment");
137
138static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015736,
139        "dEQP-GLES3.functional.shaders.matrix.matr",
140        "ixcompmult.dynamic.highp_mat3_mat3_vertex");
141
142static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015737,
143        "dEQP-GLES3.functional.shaders.matrix.matri",
144        "xcompmult.dynamic.highp_mat3_mat3_fragment");
145
146static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015738,
147        "dEQP-GLES3.functional.shaders.matrix.matri",
148        "xcompmult.dynamic.lowp_mat3x4_mat3x4_vertex");
149
150static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015739,
151        "dEQP-GLES3.functional.shaders.matrix.matrix",
152        "compmult.dynamic.lowp_mat3x4_mat3x4_fragment");
153
154static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015740,
155        "dEQP-GLES3.functional.shaders.matrix.matrixc",
156        "ompmult.dynamic.mediump_mat3x4_mat3x4_vertex");
157
158static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015741,
159        "dEQP-GLES3.functional.shaders.matrix.matrixco",
160        "mpmult.dynamic.mediump_mat3x4_mat3x4_fragment");
161
162static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015742,
163        "dEQP-GLES3.functional.shaders.matrix.matrix",
164        "compmult.dynamic.highp_mat3x4_mat3x4_vertex");
165
166static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015743,
167        "dEQP-GLES3.functional.shaders.matrix.matrixc",
168        "ompmult.dynamic.highp_mat3x4_mat3x4_fragment");
169
170static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015744,
171        "dEQP-GLES3.functional.shaders.matrix.matri",
172        "xcompmult.dynamic.lowp_mat4x2_mat4x2_vertex");
173
174static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015745,
175        "dEQP-GLES3.functional.shaders.matrix.matrix",
176        "compmult.dynamic.lowp_mat4x2_mat4x2_fragment");
177
178static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015746,
179        "dEQP-GLES3.functional.shaders.matrix.matrixc",
180        "ompmult.dynamic.mediump_mat4x2_mat4x2_vertex");
181
182static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015747,
183        "dEQP-GLES3.functional.shaders.matrix.matrixco",
184        "mpmult.dynamic.mediump_mat4x2_mat4x2_fragment");
185
186static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015748,
187        "dEQP-GLES3.functional.shaders.matrix.matrix",
188        "compmult.dynamic.highp_mat4x2_mat4x2_vertex");
189
190static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015749,
191        "dEQP-GLES3.functional.shaders.matrix.matrixc",
192        "ompmult.dynamic.highp_mat4x2_mat4x2_fragment");
193
194static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015750,
195        "dEQP-GLES3.functional.shaders.matrix.matri",
196        "xcompmult.dynamic.lowp_mat4x3_mat4x3_vertex");
197
198static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015751,
199        "dEQP-GLES3.functional.shaders.matrix.matrix",
200        "compmult.dynamic.lowp_mat4x3_mat4x3_fragment");
201
202static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015752,
203        "dEQP-GLES3.functional.shaders.matrix.matrixc",
204        "ompmult.dynamic.mediump_mat4x3_mat4x3_vertex");
205
206static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015753,
207        "dEQP-GLES3.functional.shaders.matrix.matrixco",
208        "mpmult.dynamic.mediump_mat4x3_mat4x3_fragment");
209
210static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015754,
211        "dEQP-GLES3.functional.shaders.matrix.matrix",
212        "compmult.dynamic.highp_mat4x3_mat4x3_vertex");
213
214static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015755,
215        "dEQP-GLES3.functional.shaders.matrix.matrixc",
216        "ompmult.dynamic.highp_mat4x3_mat4x3_fragment");
217
218static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015756,
219        "dEQP-GLES3.functional.shaders.matrix.mat",
220        "rixcompmult.dynamic.lowp_mat4_mat4_vertex");
221
222static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015757,
223        "dEQP-GLES3.functional.shaders.matrix.matr",
224        "ixcompmult.dynamic.lowp_mat4_mat4_fragment");
225
226static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015758,
227        "dEQP-GLES3.functional.shaders.matrix.matri",
228        "xcompmult.dynamic.mediump_mat4_mat4_vertex");
229
230static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015759,
231        "dEQP-GLES3.functional.shaders.matrix.matrix",
232        "compmult.dynamic.mediump_mat4_mat4_fragment");
233
234static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015760,
235        "dEQP-GLES3.functional.shaders.matrix.matr",
236        "ixcompmult.dynamic.highp_mat4_mat4_vertex");
237
238static SHRINK_HWTEST_F(ActsDeqpgles30016TestSuite, TestCase_015761,
239        "dEQP-GLES3.functional.shaders.matrix.matri",
240        "xcompmult.dynamic.highp_mat4_mat4_fragment");
241