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 "../ActsDeqpgles20016TestSuite.h"
20#include "shrinkdefine.h"
21
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015727,
27        "dEQP-GLES2.functional.clipping.p",
28        "olygon.poly_clip_viewport_center");
29
30static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015728,
31        "dEQP-GLES2.functional.clipping.p",
32        "olygon.poly_clip_viewport_corner");
33
34static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015729,
35        "dEQP-GLES2.functional.cli",
36        "pping.polygon.poly_z_clip");
37
38static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015730,
39        "dEQP-GLES2.functional.clipping.po",
40        "lygon.poly_z_clip_viewport_center");
41
42static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015731,
43        "dEQP-GLES2.functional.clipping.po",
44        "lygon.poly_z_clip_viewport_corner");
45
46static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015732,
47        "dEQP-GLES2.functional.clipping.poly",
48        "gon.large_poly_clip_viewport_center");
49
50static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015733,
51        "dEQP-GLES2.functional.clipping.poly",
52        "gon.large_poly_clip_viewport_corner");
53
54static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015734,
55        "dEQP-GLES2.functional.clippi",
56        "ng.polygon.large_poly_z_clip");
57
58static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015735,
59        "dEQP-GLES2.functional.clipping.polyg",
60        "on.large_poly_z_clip_viewport_center");
61
62static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015736,
63        "dEQP-GLES2.functional.clipping.polyg",
64        "on.large_poly_z_clip_viewport_corner");
65
66static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015737,
67        "dEQP-GLES2.functional.clipp",
68        "ing.polygon.poly_attrib_clip");
69
70static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015738,
71        "dEQP-GLES2.functional.clipping.poly",
72        "gon.poly_attrib_clip_viewport_center");
73
74static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015739,
75        "dEQP-GLES2.functional.clipping.poly",
76        "gon.poly_attrib_clip_viewport_corner");
77
78static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015740,
79        "dEQP-GLES2.functional.cl",
80        "ipping.polygon.multiple_0");
81
82static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015741,
83        "dEQP-GLES2.functional.clipping.p",
84        "olygon.multiple_0_viewport_center");
85
86static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015742,
87        "dEQP-GLES2.functional.clipping.p",
88        "olygon.multiple_0_viewport_corner");
89
90static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015743,
91        "dEQP-GLES2.functional.cl",
92        "ipping.polygon.multiple_1");
93
94static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015744,
95        "dEQP-GLES2.functional.clipping.p",
96        "olygon.multiple_1_viewport_center");
97
98static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015745,
99        "dEQP-GLES2.functional.clipping.p",
100        "olygon.multiple_1_viewport_corner");
101
102static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015746,
103        "dEQP-GLES2.functional.cl",
104        "ipping.polygon.multiple_2");
105
106static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015747,
107        "dEQP-GLES2.functional.clipping.p",
108        "olygon.multiple_2_viewport_center");
109
110static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015748,
111        "dEQP-GLES2.functional.clipping.p",
112        "olygon.multiple_2_viewport_corner");
113
114static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015749,
115        "dEQP-GLES2.functional.cl",
116        "ipping.polygon.multiple_3");
117
118static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015750,
119        "dEQP-GLES2.functional.clipping.p",
120        "olygon.multiple_3_viewport_center");
121
122static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015751,
123        "dEQP-GLES2.functional.clipping.p",
124        "olygon.multiple_3_viewport_corner");
125
126static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015752,
127        "dEQP-GLES2.functional.cl",
128        "ipping.polygon.multiple_4");
129
130static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015753,
131        "dEQP-GLES2.functional.clipping.p",
132        "olygon.multiple_4_viewport_center");
133
134static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015754,
135        "dEQP-GLES2.functional.clipping.p",
136        "olygon.multiple_4_viewport_corner");
137
138static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015755,
139        "dEQP-GLES2.functional.cl",
140        "ipping.polygon.multiple_5");
141
142static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015756,
143        "dEQP-GLES2.functional.clipping.p",
144        "olygon.multiple_5_viewport_center");
145
146static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015757,
147        "dEQP-GLES2.functional.clipping.p",
148        "olygon.multiple_5_viewport_corner");
149
150static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015758,
151        "dEQP-GLES2.functional.cl",
152        "ipping.polygon.multiple_6");
153
154static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015759,
155        "dEQP-GLES2.functional.clipping.p",
156        "olygon.multiple_6_viewport_center");
157
158static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015760,
159        "dEQP-GLES2.functional.clipping.p",
160        "olygon.multiple_6_viewport_corner");
161
162static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015761,
163        "dEQP-GLES2.functional.cl",
164        "ipping.polygon.multiple_7");
165
166static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015762,
167        "dEQP-GLES2.functional.clipping.p",
168        "olygon.multiple_7_viewport_center");
169
170static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015763,
171        "dEQP-GLES2.functional.clipping.p",
172        "olygon.multiple_7_viewport_corner");
173
174static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015764,
175        "dEQP-GLES2.functional.cl",
176        "ipping.polygon.multiple_8");
177
178static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015765,
179        "dEQP-GLES2.functional.clipping.p",
180        "olygon.multiple_8_viewport_center");
181
182static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015766,
183        "dEQP-GLES2.functional.clipping.p",
184        "olygon.multiple_8_viewport_corner");
185
186static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015767,
187        "dEQP-GLES2.functional.cl",
188        "ipping.polygon.multiple_9");
189
190static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015768,
191        "dEQP-GLES2.functional.clipping.p",
192        "olygon.multiple_9_viewport_center");
193
194static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015769,
195        "dEQP-GLES2.functional.clipping.p",
196        "olygon.multiple_9_viewport_corner");
197
198static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015770,
199        "dEQP-GLES2.functional.cli",
200        "pping.polygon.multiple_10");
201
202static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015771,
203        "dEQP-GLES2.functional.clipping.po",
204        "lygon.multiple_10_viewport_center");
205
206static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015772,
207        "dEQP-GLES2.functional.clipping.po",
208        "lygon.multiple_10_viewport_corner");
209
210static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015773,
211        "dEQP-GLES2.functional.cli",
212        "pping.polygon.multiple_11");
213
214static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015774,
215        "dEQP-GLES2.functional.clipping.po",
216        "lygon.multiple_11_viewport_center");
217
218static SHRINK_HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015775,
219        "dEQP-GLES2.functional.clipping.po",
220        "lygon.multiple_11_viewport_corner");
221