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 "../Deqpgles2BaseFunc.h"
19f6603c60Sopenharmony_ci#include "../ActsDeqpgles20013TestSuite.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(ActsDeqpgles20013TestSuite, TestCase_012706,
27f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderable.",
28f6603c60Sopenharmony_ci        "renderbuffer.stencil.depth_component_unsigned_short");
29f6603c60Sopenharmony_ci
30f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012707,
31f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderable",
32f6603c60Sopenharmony_ci        ".renderbuffer.stencil.depth_component_unsigned_int");
33f6603c60Sopenharmony_ci
34f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012708,
35f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
36f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.red_unsigned_byte");
37f6603c60Sopenharmony_ci
38f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012709,
39f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.r",
40f6603c60Sopenharmony_ci        "enderable.renderbuffer.stencil.red_float");
41f6603c60Sopenharmony_ci
42f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012710,
43f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
44f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.red_half_float_oes");
45f6603c60Sopenharmony_ci
46f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012711,
47f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
48f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.rgb_unsigned_byte");
49f6603c60Sopenharmony_ci
50f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012712,
51f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.r",
52f6603c60Sopenharmony_ci        "enderable.renderbuffer.stencil.rgb_float");
53f6603c60Sopenharmony_ci
54f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012713,
55f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderab",
56f6603c60Sopenharmony_ci        "le.renderbuffer.stencil.rgb_unsigned_short_5_6_5");
57f6603c60Sopenharmony_ci
58f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012714,
59f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderable.r",
60f6603c60Sopenharmony_ci        "enderbuffer.stencil.rgb_unsigned_int_2_10_10_10_rev");
61f6603c60Sopenharmony_ci
62f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012715,
63f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderable.r",
64f6603c60Sopenharmony_ci        "enderbuffer.stencil.rgb_unsigned_int_10f_11f_11f_rev");
65f6603c60Sopenharmony_ci
66f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012716,
67f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
68f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.rgb_half_float_oes");
69f6603c60Sopenharmony_ci
70f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012717,
71f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
72f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.rgba_unsigned_byte");
73f6603c60Sopenharmony_ci
74f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012718,
75f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.r",
76f6603c60Sopenharmony_ci        "enderable.renderbuffer.stencil.rgba_float");
77f6603c60Sopenharmony_ci
78f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012719,
79f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderable",
80f6603c60Sopenharmony_ci        ".renderbuffer.stencil.rgba_unsigned_short_4_4_4_4");
81f6603c60Sopenharmony_ci
82f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012720,
83f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderable",
84f6603c60Sopenharmony_ci        ".renderbuffer.stencil.rgba_unsigned_short_5_5_5_1");
85f6603c60Sopenharmony_ci
86f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012721,
87f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderable.r",
88f6603c60Sopenharmony_ci        "enderbuffer.stencil.rgba_unsigned_int_2_10_10_10_rev");
89f6603c60Sopenharmony_ci
90f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012722,
91f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.render",
92f6603c60Sopenharmony_ci        "able.renderbuffer.stencil.rgba_half_float_oes");
93f6603c60Sopenharmony_ci
94f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012723,
95f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completenes",
96f6603c60Sopenharmony_ci        "s.renderable.renderbuffer.stencil.rgb8");
97f6603c60Sopenharmony_ci
98f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012724,
99f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness",
100f6603c60Sopenharmony_ci        ".renderable.renderbuffer.stencil.rgb10");
101f6603c60Sopenharmony_ci
102f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012725,
103f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness",
104f6603c60Sopenharmony_ci        ".renderable.renderbuffer.stencil.rgba4");
105f6603c60Sopenharmony_ci
106f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012726,
107f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.",
108f6603c60Sopenharmony_ci        "renderable.renderbuffer.stencil.rgb5_a1");
109f6603c60Sopenharmony_ci
110f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012727,
111f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness",
112f6603c60Sopenharmony_ci        ".renderable.renderbuffer.stencil.rgba8");
113f6603c60Sopenharmony_ci
114f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012728,
115f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.",
116f6603c60Sopenharmony_ci        "renderable.renderbuffer.stencil.rgb10_a2");
117f6603c60Sopenharmony_ci
118f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012729,
119f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
120f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.depth_component16");
121f6603c60Sopenharmony_ci
122f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012730,
123f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
124f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.depth_component24");
125f6603c60Sopenharmony_ci
126f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012731,
127f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
128f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.depth_component32");
129f6603c60Sopenharmony_ci
130f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012732,
131f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rend",
132f6603c60Sopenharmony_ci        "erable.renderbuffer.stencil.rg_unsigned_byte");
133f6603c60Sopenharmony_ci
134f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012733,
135f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.",
136f6603c60Sopenharmony_ci        "renderable.renderbuffer.stencil.rg_float");
137f6603c60Sopenharmony_ci
138f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012734,
139f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
140f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.rg_half_float_oes");
141f6603c60Sopenharmony_ci
142f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012735,
143f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completene",
144f6603c60Sopenharmony_ci        "ss.renderable.renderbuffer.stencil.r8");
145f6603c60Sopenharmony_ci
146f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012736,
147f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completenes",
148f6603c60Sopenharmony_ci        "s.renderable.renderbuffer.stencil.rg8");
149f6603c60Sopenharmony_ci
150f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012737,
151f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completenes",
152f6603c60Sopenharmony_ci        "s.renderable.renderbuffer.stencil.r16f");
153f6603c60Sopenharmony_ci
154f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012738,
155f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness",
156f6603c60Sopenharmony_ci        ".renderable.renderbuffer.stencil.rg16f");
157f6603c60Sopenharmony_ci
158f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012739,
159f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderable.r",
160f6603c60Sopenharmony_ci        "enderbuffer.stencil.depth_stencil_unsigned_int_24_8");
161f6603c60Sopenharmony_ci
162f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012740,
163f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.",
164f6603c60Sopenharmony_ci        "renderable.renderbuffer.stencil.rgba16f");
165f6603c60Sopenharmony_ci
166f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012741,
167f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness",
168f6603c60Sopenharmony_ci        ".renderable.renderbuffer.stencil.rgb16f");
169f6603c60Sopenharmony_ci
170f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012742,
171f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rend",
172f6603c60Sopenharmony_ci        "erable.renderbuffer.stencil.depth24_stencil8");
173f6603c60Sopenharmony_ci
174f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012743,
175f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.ren",
176f6603c60Sopenharmony_ci        "derable.renderbuffer.stencil.r11f_g11f_b10f");
177f6603c60Sopenharmony_ci
178f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012744,
179f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.rende",
180f6603c60Sopenharmony_ci        "rable.renderbuffer.stencil.srgb_unsigned_byte");
181f6603c60Sopenharmony_ci
182f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012745,
183f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness",
184f6603c60Sopenharmony_ci        ".renderable.renderbuffer.stencil.srgb8");
185f6603c60Sopenharmony_ci
186f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012746,
187f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.renderab",
188f6603c60Sopenharmony_ci        "le.renderbuffer.stencil.srgb_alpha_unsigned_byte");
189f6603c60Sopenharmony_ci
190f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012747,
191f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.re",
192f6603c60Sopenharmony_ci        "nderable.renderbuffer.stencil.srgb8_alpha8");
193f6603c60Sopenharmony_ci
194f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012748,
195f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.ren",
196f6603c60Sopenharmony_ci        "derable.renderbuffer.stencil.stencil_index8");
197f6603c60Sopenharmony_ci
198f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012749,
199f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness",
200f6603c60Sopenharmony_ci        ".renderable.renderbuffer.stencil.rgb565");
201f6603c60Sopenharmony_ci
202f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012750,
203f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.",
204f6603c60Sopenharmony_ci        "renderable.renderbuffer.stencil.sr8_ext");
205f6603c60Sopenharmony_ci
206f6603c60Sopenharmony_cistatic SHRINK_HWTEST_F(ActsDeqpgles20013TestSuite, TestCase_012751,
207f6603c60Sopenharmony_ci        "dEQP-GLES2.functional.fbo.completeness.",
208f6603c60Sopenharmony_ci        "renderable.renderbuffer.stencil.srg8_ext");
209