1f6603c60Sopenharmony_ci/*
2f6603c60Sopenharmony_ci * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3f6603c60Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4f6603c60Sopenharmony_ci * you may not use this file except in compliance with the License.
5f6603c60Sopenharmony_ci * You may obtain a copy of the License at
6f6603c60Sopenharmony_ci *
7f6603c60Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8f6603c60Sopenharmony_ci *
9f6603c60Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10f6603c60Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11f6603c60Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12f6603c60Sopenharmony_ci * See the License for the specific language governing permissions and
13f6603c60Sopenharmony_ci * limitations under the License.
14f6603c60Sopenharmony_ci */
15f6603c60Sopenharmony_ci
16f6603c60Sopenharmony_ci#include <climits>
17f6603c60Sopenharmony_ci#include <gtest/gtest.h>
18f6603c60Sopenharmony_ci#include "../Deqpgles3BaseFunc.h"
19f6603c60Sopenharmony_ci#include "../ActsDeqpgles30033TestSuite.h"
20f6603c60Sopenharmony_ci#include "shrinkdefine.h"
21f6603c60Sopenharmony_ci
22f6603c60Sopenharmony_ciusing namespace std;
23f6603c60Sopenharmony_ciusing namespace testing::ext;
24f6603c60Sopenharmony_ciusing namespace OHOS;
25f6603c60Sopenharmony_ci
26f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032060,
27f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fb",
28f6603c60Sopenharmony_ci        "o.blit.rect.basic_nearest");
29f6603c60Sopenharmony_ci
30f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032061,
31f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fb",
32f6603c60Sopenharmony_ci        "o.blit.rect.basic_linear");
33f6603c60Sopenharmony_ci
34f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032062,
35f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
36f6603c60Sopenharmony_ci        "rect.basic_reverse_src_x_nearest");
37f6603c60Sopenharmony_ci
38f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032063,
39f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
40f6603c60Sopenharmony_ci        "rect.basic_reverse_src_x_linear");
41f6603c60Sopenharmony_ci
42f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032064,
43f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
44f6603c60Sopenharmony_ci        "rect.basic_reverse_src_y_nearest");
45f6603c60Sopenharmony_ci
46f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032065,
47f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
48f6603c60Sopenharmony_ci        "rect.basic_reverse_src_y_linear");
49f6603c60Sopenharmony_ci
50f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032066,
51f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
52f6603c60Sopenharmony_ci        "rect.basic_reverse_dst_x_nearest");
53f6603c60Sopenharmony_ci
54f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032067,
55f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
56f6603c60Sopenharmony_ci        "rect.basic_reverse_dst_x_linear");
57f6603c60Sopenharmony_ci
58f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032068,
59f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
60f6603c60Sopenharmony_ci        "rect.basic_reverse_dst_y_nearest");
61f6603c60Sopenharmony_ci
62f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032069,
63f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
64f6603c60Sopenharmony_ci        "rect.basic_reverse_dst_y_linear");
65f6603c60Sopenharmony_ci
66f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032070,
67f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.re",
68f6603c60Sopenharmony_ci        "ct.basic_reverse_src_dst_x_nearest");
69f6603c60Sopenharmony_ci
70f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032071,
71f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.re",
72f6603c60Sopenharmony_ci        "ct.basic_reverse_src_dst_x_linear");
73f6603c60Sopenharmony_ci
74f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032072,
75f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.re",
76f6603c60Sopenharmony_ci        "ct.basic_reverse_src_dst_y_nearest");
77f6603c60Sopenharmony_ci
78f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032073,
79f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.re",
80f6603c60Sopenharmony_ci        "ct.basic_reverse_src_dst_y_linear");
81f6603c60Sopenharmony_ci
82f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032074,
83f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fb",
84f6603c60Sopenharmony_ci        "o.blit.rect.scale_nearest");
85f6603c60Sopenharmony_ci
86f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032075,
87f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fb",
88f6603c60Sopenharmony_ci        "o.blit.rect.scale_linear");
89f6603c60Sopenharmony_ci
90f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032076,
91f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
92f6603c60Sopenharmony_ci        "rect.scale_reverse_src_x_nearest");
93f6603c60Sopenharmony_ci
94f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032077,
95f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
96f6603c60Sopenharmony_ci        "rect.scale_reverse_src_x_linear");
97f6603c60Sopenharmony_ci
98f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032078,
99f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
100f6603c60Sopenharmony_ci        "rect.scale_reverse_src_y_nearest");
101f6603c60Sopenharmony_ci
102f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032079,
103f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
104f6603c60Sopenharmony_ci        "rect.scale_reverse_src_y_linear");
105f6603c60Sopenharmony_ci
106f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032080,
107f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
108f6603c60Sopenharmony_ci        "rect.scale_reverse_dst_x_nearest");
109f6603c60Sopenharmony_ci
110f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032081,
111f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
112f6603c60Sopenharmony_ci        "rect.scale_reverse_dst_x_linear");
113f6603c60Sopenharmony_ci
114f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032082,
115f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
116f6603c60Sopenharmony_ci        "rect.scale_reverse_dst_y_nearest");
117f6603c60Sopenharmony_ci
118f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032083,
119f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.",
120f6603c60Sopenharmony_ci        "rect.scale_reverse_dst_y_linear");
121f6603c60Sopenharmony_ci
122f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032084,
123f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.re",
124f6603c60Sopenharmony_ci        "ct.scale_reverse_src_dst_x_nearest");
125f6603c60Sopenharmony_ci
126f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032085,
127f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.re",
128f6603c60Sopenharmony_ci        "ct.scale_reverse_src_dst_x_linear");
129f6603c60Sopenharmony_ci
130f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032086,
131f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.re",
132f6603c60Sopenharmony_ci        "ct.scale_reverse_src_dst_y_nearest");
133f6603c60Sopenharmony_ci
134f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032087,
135f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.re",
136f6603c60Sopenharmony_ci        "ct.scale_reverse_src_dst_y_linear");
137f6603c60Sopenharmony_ci
138f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032088,
139f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.bl",
140f6603c60Sopenharmony_ci        "it.rect.out_of_bounds_nearest");
141f6603c60Sopenharmony_ci
142f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032089,
143f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.bl",
144f6603c60Sopenharmony_ci        "it.rect.out_of_bounds_linear");
145f6603c60Sopenharmony_ci
146f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032090,
147f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect",
148f6603c60Sopenharmony_ci        ".out_of_bounds_reverse_src_x_nearest");
149f6603c60Sopenharmony_ci
150f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032091,
151f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect",
152f6603c60Sopenharmony_ci        ".out_of_bounds_reverse_src_x_linear");
153f6603c60Sopenharmony_ci
154f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032092,
155f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect",
156f6603c60Sopenharmony_ci        ".out_of_bounds_reverse_src_y_nearest");
157f6603c60Sopenharmony_ci
158f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032093,
159f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect",
160f6603c60Sopenharmony_ci        ".out_of_bounds_reverse_src_y_linear");
161f6603c60Sopenharmony_ci
162f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032094,
163f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect",
164f6603c60Sopenharmony_ci        ".out_of_bounds_reverse_dst_x_nearest");
165f6603c60Sopenharmony_ci
166f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032095,
167f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect",
168f6603c60Sopenharmony_ci        ".out_of_bounds_reverse_dst_x_linear");
169f6603c60Sopenharmony_ci
170f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032096,
171f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect",
172f6603c60Sopenharmony_ci        ".out_of_bounds_reverse_dst_y_nearest");
173f6603c60Sopenharmony_ci
174f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032097,
175f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect",
176f6603c60Sopenharmony_ci        ".out_of_bounds_reverse_dst_y_linear");
177f6603c60Sopenharmony_ci
178f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032098,
179f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.o",
180f6603c60Sopenharmony_ci        "ut_of_bounds_reverse_src_dst_x_nearest");
181f6603c60Sopenharmony_ci
182f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032099,
183f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.o",
184f6603c60Sopenharmony_ci        "ut_of_bounds_reverse_src_dst_x_linear");
185f6603c60Sopenharmony_ci
186f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032100,
187f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.o",
188f6603c60Sopenharmony_ci        "ut_of_bounds_reverse_src_dst_y_nearest");
189f6603c60Sopenharmony_ci
190f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032101,
191f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.o",
192f6603c60Sopenharmony_ci        "ut_of_bounds_reverse_src_dst_y_linear");
193f6603c60Sopenharmony_ci
194f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032102,
195f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.bli",
196f6603c60Sopenharmony_ci        "t.rect.nearest_consistency_mag");
197f6603c60Sopenharmony_ci
198f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032103,
199f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.",
200f6603c60Sopenharmony_ci        "nearest_consistency_mag_reverse_src_x");
201f6603c60Sopenharmony_ci
202f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032104,
203f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.",
204f6603c60Sopenharmony_ci        "nearest_consistency_mag_reverse_src_y");
205f6603c60Sopenharmony_ci
206f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032105,
207f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.",
208f6603c60Sopenharmony_ci        "nearest_consistency_mag_reverse_dst_x");
209f6603c60Sopenharmony_ci
210f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032106,
211f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.",
212f6603c60Sopenharmony_ci        "nearest_consistency_mag_reverse_dst_y");
213f6603c60Sopenharmony_ci
214f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032107,
215f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.ne",
216f6603c60Sopenharmony_ci        "arest_consistency_mag_reverse_src_dst_x");
217f6603c60Sopenharmony_ci
218f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032108,
219f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.ne",
220f6603c60Sopenharmony_ci        "arest_consistency_mag_reverse_src_dst_y");
221f6603c60Sopenharmony_ci
222f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032109,
223f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.bli",
224f6603c60Sopenharmony_ci        "t.rect.nearest_consistency_min");
225f6603c60Sopenharmony_ci
226f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032110,
227f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.",
228f6603c60Sopenharmony_ci        "nearest_consistency_min_reverse_src_x");
229f6603c60Sopenharmony_ci
230f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032111,
231f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.",
232f6603c60Sopenharmony_ci        "nearest_consistency_min_reverse_src_y");
233f6603c60Sopenharmony_ci
234f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032112,
235f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.",
236f6603c60Sopenharmony_ci        "nearest_consistency_min_reverse_dst_x");
237f6603c60Sopenharmony_ci
238f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032113,
239f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.",
240f6603c60Sopenharmony_ci        "nearest_consistency_min_reverse_dst_y");
241f6603c60Sopenharmony_ci
242f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032114,
243f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.ne",
244f6603c60Sopenharmony_ci        "arest_consistency_min_reverse_src_dst_x");
245f6603c60Sopenharmony_ci
246f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles30033TestSuite, TestCase_032115,
247f6603c60Sopenharmony_ci        "dEQP-GLES3.functional.fbo.blit.rect.ne",
248f6603c60Sopenharmony_ci        "arest_consistency_min_reverse_src_dst_y");
249