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 "../ActsDeqpgles30033TestSuite.h"
20#include "shrinkdefine.h"
21
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032060,
27        "dEQP-GLES3.functional.fb",
28        "o.blit.rect.basic_nearest");
29
30static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032061,
31        "dEQP-GLES3.functional.fb",
32        "o.blit.rect.basic_linear");
33
34static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032062,
35        "dEQP-GLES3.functional.fbo.blit.",
36        "rect.basic_reverse_src_x_nearest");
37
38static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032063,
39        "dEQP-GLES3.functional.fbo.blit.",
40        "rect.basic_reverse_src_x_linear");
41
42static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032064,
43        "dEQP-GLES3.functional.fbo.blit.",
44        "rect.basic_reverse_src_y_nearest");
45
46static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032065,
47        "dEQP-GLES3.functional.fbo.blit.",
48        "rect.basic_reverse_src_y_linear");
49
50static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032066,
51        "dEQP-GLES3.functional.fbo.blit.",
52        "rect.basic_reverse_dst_x_nearest");
53
54static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032067,
55        "dEQP-GLES3.functional.fbo.blit.",
56        "rect.basic_reverse_dst_x_linear");
57
58static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032068,
59        "dEQP-GLES3.functional.fbo.blit.",
60        "rect.basic_reverse_dst_y_nearest");
61
62static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032069,
63        "dEQP-GLES3.functional.fbo.blit.",
64        "rect.basic_reverse_dst_y_linear");
65
66static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032070,
67        "dEQP-GLES3.functional.fbo.blit.re",
68        "ct.basic_reverse_src_dst_x_nearest");
69
70static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032071,
71        "dEQP-GLES3.functional.fbo.blit.re",
72        "ct.basic_reverse_src_dst_x_linear");
73
74static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032072,
75        "dEQP-GLES3.functional.fbo.blit.re",
76        "ct.basic_reverse_src_dst_y_nearest");
77
78static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032073,
79        "dEQP-GLES3.functional.fbo.blit.re",
80        "ct.basic_reverse_src_dst_y_linear");
81
82static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032074,
83        "dEQP-GLES3.functional.fb",
84        "o.blit.rect.scale_nearest");
85
86static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032075,
87        "dEQP-GLES3.functional.fb",
88        "o.blit.rect.scale_linear");
89
90static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032076,
91        "dEQP-GLES3.functional.fbo.blit.",
92        "rect.scale_reverse_src_x_nearest");
93
94static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032077,
95        "dEQP-GLES3.functional.fbo.blit.",
96        "rect.scale_reverse_src_x_linear");
97
98static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032078,
99        "dEQP-GLES3.functional.fbo.blit.",
100        "rect.scale_reverse_src_y_nearest");
101
102static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032079,
103        "dEQP-GLES3.functional.fbo.blit.",
104        "rect.scale_reverse_src_y_linear");
105
106static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032080,
107        "dEQP-GLES3.functional.fbo.blit.",
108        "rect.scale_reverse_dst_x_nearest");
109
110static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032081,
111        "dEQP-GLES3.functional.fbo.blit.",
112        "rect.scale_reverse_dst_x_linear");
113
114static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032082,
115        "dEQP-GLES3.functional.fbo.blit.",
116        "rect.scale_reverse_dst_y_nearest");
117
118static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032083,
119        "dEQP-GLES3.functional.fbo.blit.",
120        "rect.scale_reverse_dst_y_linear");
121
122static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032084,
123        "dEQP-GLES3.functional.fbo.blit.re",
124        "ct.scale_reverse_src_dst_x_nearest");
125
126static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032085,
127        "dEQP-GLES3.functional.fbo.blit.re",
128        "ct.scale_reverse_src_dst_x_linear");
129
130static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032086,
131        "dEQP-GLES3.functional.fbo.blit.re",
132        "ct.scale_reverse_src_dst_y_nearest");
133
134static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032087,
135        "dEQP-GLES3.functional.fbo.blit.re",
136        "ct.scale_reverse_src_dst_y_linear");
137
138static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032088,
139        "dEQP-GLES3.functional.fbo.bl",
140        "it.rect.out_of_bounds_nearest");
141
142static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032089,
143        "dEQP-GLES3.functional.fbo.bl",
144        "it.rect.out_of_bounds_linear");
145
146static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032090,
147        "dEQP-GLES3.functional.fbo.blit.rect",
148        ".out_of_bounds_reverse_src_x_nearest");
149
150static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032091,
151        "dEQP-GLES3.functional.fbo.blit.rect",
152        ".out_of_bounds_reverse_src_x_linear");
153
154static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032092,
155        "dEQP-GLES3.functional.fbo.blit.rect",
156        ".out_of_bounds_reverse_src_y_nearest");
157
158static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032093,
159        "dEQP-GLES3.functional.fbo.blit.rect",
160        ".out_of_bounds_reverse_src_y_linear");
161
162static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032094,
163        "dEQP-GLES3.functional.fbo.blit.rect",
164        ".out_of_bounds_reverse_dst_x_nearest");
165
166static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032095,
167        "dEQP-GLES3.functional.fbo.blit.rect",
168        ".out_of_bounds_reverse_dst_x_linear");
169
170static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032096,
171        "dEQP-GLES3.functional.fbo.blit.rect",
172        ".out_of_bounds_reverse_dst_y_nearest");
173
174static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032097,
175        "dEQP-GLES3.functional.fbo.blit.rect",
176        ".out_of_bounds_reverse_dst_y_linear");
177
178static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032098,
179        "dEQP-GLES3.functional.fbo.blit.rect.o",
180        "ut_of_bounds_reverse_src_dst_x_nearest");
181
182static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032099,
183        "dEQP-GLES3.functional.fbo.blit.rect.o",
184        "ut_of_bounds_reverse_src_dst_x_linear");
185
186static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032100,
187        "dEQP-GLES3.functional.fbo.blit.rect.o",
188        "ut_of_bounds_reverse_src_dst_y_nearest");
189
190static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032101,
191        "dEQP-GLES3.functional.fbo.blit.rect.o",
192        "ut_of_bounds_reverse_src_dst_y_linear");
193
194static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032102,
195        "dEQP-GLES3.functional.fbo.bli",
196        "t.rect.nearest_consistency_mag");
197
198static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032103,
199        "dEQP-GLES3.functional.fbo.blit.rect.",
200        "nearest_consistency_mag_reverse_src_x");
201
202static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032104,
203        "dEQP-GLES3.functional.fbo.blit.rect.",
204        "nearest_consistency_mag_reverse_src_y");
205
206static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032105,
207        "dEQP-GLES3.functional.fbo.blit.rect.",
208        "nearest_consistency_mag_reverse_dst_x");
209
210static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032106,
211        "dEQP-GLES3.functional.fbo.blit.rect.",
212        "nearest_consistency_mag_reverse_dst_y");
213
214static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032107,
215        "dEQP-GLES3.functional.fbo.blit.rect.ne",
216        "arest_consistency_mag_reverse_src_dst_x");
217
218static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032108,
219        "dEQP-GLES3.functional.fbo.blit.rect.ne",
220        "arest_consistency_mag_reverse_src_dst_y");
221
222static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032109,
223        "dEQP-GLES3.functional.fbo.bli",
224        "t.rect.nearest_consistency_min");
225
226static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032110,
227        "dEQP-GLES3.functional.fbo.blit.rect.",
228        "nearest_consistency_min_reverse_src_x");
229
230static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032111,
231        "dEQP-GLES3.functional.fbo.blit.rect.",
232        "nearest_consistency_min_reverse_src_y");
233
234static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032112,
235        "dEQP-GLES3.functional.fbo.blit.rect.",
236        "nearest_consistency_min_reverse_dst_x");
237
238static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032113,
239        "dEQP-GLES3.functional.fbo.blit.rect.",
240        "nearest_consistency_min_reverse_dst_y");
241
242static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032114,
243        "dEQP-GLES3.functional.fbo.blit.rect.ne",
244        "arest_consistency_min_reverse_src_dst_x");
245
246static SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032115,
247        "dEQP-GLES3.functional.fbo.blit.rect.ne",
248        "arest_consistency_min_reverse_src_dst_y");
249