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 "../Deqpgles2BaseFunc.h"
19 #include "../ActsDeqpgles20001TestSuite.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(ActsDeqpgles20001TestSuite, TestCase_000903,
27         "dEQP-GLES2.functional.shaders.conversi",
28         "ons.vector_illegal.vec2_to_vec3_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000904,
31         "dEQP-GLES2.functional.shaders.conversio",
32         "ns.vector_illegal.vec2_to_vec3_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000905,
35         "dEQP-GLES2.functional.shaders.conversi",
36         "ons.vector_illegal.vec2_to_ivec3_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000906,
39         "dEQP-GLES2.functional.shaders.conversio",
40         "ns.vector_illegal.vec2_to_ivec3_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000907,
43         "dEQP-GLES2.functional.shaders.conversi",
44         "ons.vector_illegal.vec2_to_bvec3_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000908,
47         "dEQP-GLES2.functional.shaders.conversio",
48         "ns.vector_illegal.vec2_to_bvec3_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000909,
51         "dEQP-GLES2.functional.shaders.conversi",
52         "ons.vector_illegal.vec2_to_vec4_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000910,
55         "dEQP-GLES2.functional.shaders.conversio",
56         "ns.vector_illegal.vec2_to_vec4_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000911,
59         "dEQP-GLES2.functional.shaders.conversi",
60         "ons.vector_illegal.vec2_to_ivec4_vertex");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000912,
63         "dEQP-GLES2.functional.shaders.conversio",
64         "ns.vector_illegal.vec2_to_ivec4_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000913,
67         "dEQP-GLES2.functional.shaders.conversi",
68         "ons.vector_illegal.vec2_to_bvec4_vertex");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000914,
71         "dEQP-GLES2.functional.shaders.conversio",
72         "ns.vector_illegal.vec2_to_bvec4_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000915,
75         "dEQP-GLES2.functional.shaders.conversi",
76         "ons.vector_illegal.ivec2_to_vec3_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000916,
79         "dEQP-GLES2.functional.shaders.conversio",
80         "ns.vector_illegal.ivec2_to_vec3_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000917,
83         "dEQP-GLES2.functional.shaders.conversio",
84         "ns.vector_illegal.ivec2_to_ivec3_vertex");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000918,
87         "dEQP-GLES2.functional.shaders.conversion",
88         "s.vector_illegal.ivec2_to_ivec3_fragment");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000919,
91         "dEQP-GLES2.functional.shaders.conversio",
92         "ns.vector_illegal.ivec2_to_bvec3_vertex");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000920,
95         "dEQP-GLES2.functional.shaders.conversion",
96         "s.vector_illegal.ivec2_to_bvec3_fragment");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000921,
99         "dEQP-GLES2.functional.shaders.conversi",
100         "ons.vector_illegal.ivec2_to_vec4_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000922,
103         "dEQP-GLES2.functional.shaders.conversio",
104         "ns.vector_illegal.ivec2_to_vec4_fragment");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000923,
107         "dEQP-GLES2.functional.shaders.conversio",
108         "ns.vector_illegal.ivec2_to_ivec4_vertex");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000924,
111         "dEQP-GLES2.functional.shaders.conversion",
112         "s.vector_illegal.ivec2_to_ivec4_fragment");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000925,
115         "dEQP-GLES2.functional.shaders.conversio",
116         "ns.vector_illegal.ivec2_to_bvec4_vertex");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000926,
119         "dEQP-GLES2.functional.shaders.conversion",
120         "s.vector_illegal.ivec2_to_bvec4_fragment");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000927,
123         "dEQP-GLES2.functional.shaders.conversi",
124         "ons.vector_illegal.bvec2_to_vec3_vertex");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000928,
127         "dEQP-GLES2.functional.shaders.conversio",
128         "ns.vector_illegal.bvec2_to_vec3_fragment");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000929,
131         "dEQP-GLES2.functional.shaders.conversio",
132         "ns.vector_illegal.bvec2_to_ivec3_vertex");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000930,
135         "dEQP-GLES2.functional.shaders.conversion",
136         "s.vector_illegal.bvec2_to_ivec3_fragment");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000931,
139         "dEQP-GLES2.functional.shaders.conversio",
140         "ns.vector_illegal.bvec2_to_bvec3_vertex");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000932,
143         "dEQP-GLES2.functional.shaders.conversion",
144         "s.vector_illegal.bvec2_to_bvec3_fragment");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000933,
147         "dEQP-GLES2.functional.shaders.conversi",
148         "ons.vector_illegal.bvec2_to_vec4_vertex");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000934,
151         "dEQP-GLES2.functional.shaders.conversio",
152         "ns.vector_illegal.bvec2_to_vec4_fragment");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000935,
155         "dEQP-GLES2.functional.shaders.conversio",
156         "ns.vector_illegal.bvec2_to_ivec4_vertex");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000936,
159         "dEQP-GLES2.functional.shaders.conversion",
160         "s.vector_illegal.bvec2_to_ivec4_fragment");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000937,
163         "dEQP-GLES2.functional.shaders.conversio",
164         "ns.vector_illegal.bvec2_to_bvec4_vertex");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000938,
167         "dEQP-GLES2.functional.shaders.conversion",
168         "s.vector_illegal.bvec2_to_bvec4_fragment");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000939,
171         "dEQP-GLES2.functional.shaders.conversi",
172         "ons.vector_illegal.vec3_to_vec4_vertex");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000940,
175         "dEQP-GLES2.functional.shaders.conversio",
176         "ns.vector_illegal.vec3_to_vec4_fragment");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000941,
179         "dEQP-GLES2.functional.shaders.conversi",
180         "ons.vector_illegal.vec3_to_ivec4_vertex");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000942,
183         "dEQP-GLES2.functional.shaders.conversio",
184         "ns.vector_illegal.vec3_to_ivec4_fragment");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000943,
187         "dEQP-GLES2.functional.shaders.conversi",
188         "ons.vector_illegal.vec3_to_bvec4_vertex");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000944,
191         "dEQP-GLES2.functional.shaders.conversio",
192         "ns.vector_illegal.vec3_to_bvec4_fragment");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000945,
195         "dEQP-GLES2.functional.shaders.conversi",
196         "ons.vector_illegal.ivec3_to_vec4_vertex");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000946,
199         "dEQP-GLES2.functional.shaders.conversio",
200         "ns.vector_illegal.ivec3_to_vec4_fragment");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000947,
203         "dEQP-GLES2.functional.shaders.conversio",
204         "ns.vector_illegal.ivec3_to_ivec4_vertex");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000948,
207         "dEQP-GLES2.functional.shaders.conversion",
208         "s.vector_illegal.ivec3_to_ivec4_fragment");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000949,
211         "dEQP-GLES2.functional.shaders.conversio",
212         "ns.vector_illegal.ivec3_to_bvec4_vertex");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000950,
215         "dEQP-GLES2.functional.shaders.conversion",
216         "s.vector_illegal.ivec3_to_bvec4_fragment");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000951,
219         "dEQP-GLES2.functional.shaders.conversi",
220         "ons.vector_illegal.bvec3_to_vec4_vertex");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000952,
223         "dEQP-GLES2.functional.shaders.conversio",
224         "ns.vector_illegal.bvec3_to_vec4_fragment");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000953,
227         "dEQP-GLES2.functional.shaders.conversio",
228         "ns.vector_illegal.bvec3_to_ivec4_vertex");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000954,
231         "dEQP-GLES2.functional.shaders.conversion",
232         "s.vector_illegal.bvec3_to_ivec4_fragment");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000955,
235         "dEQP-GLES2.functional.shaders.conversio",
236         "ns.vector_illegal.bvec3_to_bvec4_vertex");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000956,
239         "dEQP-GLES2.functional.shaders.conversion",
240         "s.vector_illegal.bvec3_to_bvec4_fragment");
241