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 "../ActsDeqpgles310018TestSuite.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(ActsDeqpgles310018TestSuite, TestCase_017978,
27         "dEQP-GLES31.functional.unifor",
28         "m_location.array.float_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017979,
31         "dEQP-GLES31.functional.uniform",
32         "_location.array.float_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017980,
35         "dEQP-GLES31.functional.unifo",
36         "rm_location.array.vec2_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017981,
39         "dEQP-GLES31.functional.unifor",
40         "m_location.array.vec2_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017982,
43         "dEQP-GLES31.functional.unifo",
44         "rm_location.array.vec3_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017983,
47         "dEQP-GLES31.functional.unifor",
48         "m_location.array.vec3_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017984,
51         "dEQP-GLES31.functional.unifo",
52         "rm_location.array.vec4_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017985,
55         "dEQP-GLES31.functional.unifor",
56         "m_location.array.vec4_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017986,
59         "dEQP-GLES31.functional.unifo",
60         "rm_location.array.int_vertex");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017987,
63         "dEQP-GLES31.functional.unifor",
64         "m_location.array.int_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017988,
67         "dEQP-GLES31.functional.unifor",
68         "m_location.array.ivec2_vertex");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017989,
71         "dEQP-GLES31.functional.uniform",
72         "_location.array.ivec2_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017990,
75         "dEQP-GLES31.functional.unifor",
76         "m_location.array.ivec3_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017991,
79         "dEQP-GLES31.functional.uniform",
80         "_location.array.ivec3_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017992,
83         "dEQP-GLES31.functional.unifor",
84         "m_location.array.ivec4_vertex");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017993,
87         "dEQP-GLES31.functional.uniform",
88         "_location.array.ivec4_fragment");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017994,
91         "dEQP-GLES31.functional.unifo",
92         "rm_location.array.uint_vertex");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017995,
95         "dEQP-GLES31.functional.unifor",
96         "m_location.array.uint_fragment");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017996,
99         "dEQP-GLES31.functional.unifor",
100         "m_location.array.uvec2_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017997,
103         "dEQP-GLES31.functional.uniform",
104         "_location.array.uvec2_fragment");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017998,
107         "dEQP-GLES31.functional.unifor",
108         "m_location.array.uvec3_vertex");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_017999,
111         "dEQP-GLES31.functional.uniform",
112         "_location.array.uvec3_fragment");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018000,
115         "dEQP-GLES31.functional.unifor",
116         "m_location.array.uvec4_vertex");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018001,
119         "dEQP-GLES31.functional.uniform",
120         "_location.array.uvec4_fragment");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018002,
123         "dEQP-GLES31.functional.unifo",
124         "rm_location.array.bool_vertex");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018003,
127         "dEQP-GLES31.functional.unifor",
128         "m_location.array.bool_fragment");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018004,
131         "dEQP-GLES31.functional.unifor",
132         "m_location.array.bvec2_vertex");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018005,
135         "dEQP-GLES31.functional.uniform",
136         "_location.array.bvec2_fragment");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018006,
139         "dEQP-GLES31.functional.unifor",
140         "m_location.array.bvec3_vertex");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018007,
143         "dEQP-GLES31.functional.uniform",
144         "_location.array.bvec3_fragment");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018008,
147         "dEQP-GLES31.functional.unifor",
148         "m_location.array.bvec4_vertex");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018009,
151         "dEQP-GLES31.functional.uniform",
152         "_location.array.bvec4_fragment");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018010,
155         "dEQP-GLES31.functional.unifo",
156         "rm_location.array.mat2_vertex");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018011,
159         "dEQP-GLES31.functional.unifor",
160         "m_location.array.mat2_fragment");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018012,
163         "dEQP-GLES31.functional.unifor",
164         "m_location.array.mat2x3_vertex");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018013,
167         "dEQP-GLES31.functional.uniform",
168         "_location.array.mat2x3_fragment");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018014,
171         "dEQP-GLES31.functional.unifor",
172         "m_location.array.mat2x4_vertex");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018015,
175         "dEQP-GLES31.functional.uniform",
176         "_location.array.mat2x4_fragment");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018016,
179         "dEQP-GLES31.functional.unifor",
180         "m_location.array.mat3x2_vertex");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018017,
183         "dEQP-GLES31.functional.uniform",
184         "_location.array.mat3x2_fragment");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018018,
187         "dEQP-GLES31.functional.unifo",
188         "rm_location.array.mat3_vertex");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018019,
191         "dEQP-GLES31.functional.unifor",
192         "m_location.array.mat3_fragment");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018020,
195         "dEQP-GLES31.functional.unifor",
196         "m_location.array.mat3x4_vertex");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018021,
199         "dEQP-GLES31.functional.uniform",
200         "_location.array.mat3x4_fragment");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018022,
203         "dEQP-GLES31.functional.unifor",
204         "m_location.array.mat4x2_vertex");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018023,
207         "dEQP-GLES31.functional.uniform",
208         "_location.array.mat4x2_fragment");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018024,
211         "dEQP-GLES31.functional.unifor",
212         "m_location.array.mat4x3_vertex");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018025,
215         "dEQP-GLES31.functional.uniform",
216         "_location.array.mat4x3_fragment");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018026,
219         "dEQP-GLES31.functional.unifo",
220         "rm_location.array.mat4_vertex");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018027,
223         "dEQP-GLES31.functional.unifor",
224         "m_location.array.mat4_fragment");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018028,
227         "dEQP-GLES31.functional.uniform_",
228         "location.array.sampler2D_vertex");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018029,
231         "dEQP-GLES31.functional.uniform_l",
232         "ocation.array.sampler2D_fragment");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018030,
235         "dEQP-GLES31.functional.uniform_",
236         "location.array.isampler2D_vertex");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018031,
239         "dEQP-GLES31.functional.uniform_l",
240         "ocation.array.isampler2D_fragment");
241 
242 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018032,
243         "dEQP-GLES31.functional.uniform_",
244         "location.array.usampler2D_vertex");
245 
246 static SHRINK_HWTEST_F(ActsDeqpgles310018TestSuite, TestCase_018033,
247         "dEQP-GLES31.functional.uniform_l",
248         "ocation.array.usampler2D_fragment");
249