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 "../Deqpgles31BaseFunc.h"
19 #include "../ActsDeqpgles310012TestSuite.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(ActsDeqpgles310012TestSuite, TestCase_011294,
27         "dEQP-GLES31.functional.image_load_store",
28         ".2d.format_reinterpret.rgba32f_rgba32ui");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011295,
31         "dEQP-GLES31.functional.image_load_stor",
32         "e.2d.format_reinterpret.rgba32f_rgba32i");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011296,
35         "dEQP-GLES31.functional.image_load_store",
36         ".2d.format_reinterpret.rgba16f_rgba16ui");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011297,
39         "dEQP-GLES31.functional.image_load_stor",
40         "e.2d.format_reinterpret.rgba16f_rgba16i");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011298,
43         "dEQP-GLES31.functional.image_load_sto",
44         "re.2d.format_reinterpret.r32f_rgba8ui");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011299,
47         "dEQP-GLES31.functional.image_load_st",
48         "ore.2d.format_reinterpret.r32f_r32ui");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011300,
51         "dEQP-GLES31.functional.image_load_st",
52         "ore.2d.format_reinterpret.r32f_rgba8i");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011301,
55         "dEQP-GLES31.functional.image_load_s",
56         "tore.2d.format_reinterpret.r32f_r32i");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011302,
59         "dEQP-GLES31.functional.image_load_st",
60         "ore.2d.format_reinterpret.r32f_rgba8");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011303,
63         "dEQP-GLES31.functional.image_load_store",
64         ".2d.format_reinterpret.r32f_rgba8_snorm");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011304,
67         "dEQP-GLES31.functional.image_load_store",
68         ".2d.format_reinterpret.rgba32ui_rgba32f");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011305,
71         "dEQP-GLES31.functional.image_load_store",
72         ".2d.format_reinterpret.rgba32ui_rgba32i");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011306,
75         "dEQP-GLES31.functional.image_load_store",
76         ".2d.format_reinterpret.rgba16ui_rgba16f");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011307,
79         "dEQP-GLES31.functional.image_load_store",
80         ".2d.format_reinterpret.rgba16ui_rgba16i");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011308,
83         "dEQP-GLES31.functional.image_load_sto",
84         "re.2d.format_reinterpret.rgba8ui_r32f");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011309,
87         "dEQP-GLES31.functional.image_load_sto",
88         "re.2d.format_reinterpret.rgba8ui_r32ui");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011310,
91         "dEQP-GLES31.functional.image_load_stor",
92         "e.2d.format_reinterpret.rgba8ui_rgba8i");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011311,
95         "dEQP-GLES31.functional.image_load_sto",
96         "re.2d.format_reinterpret.rgba8ui_r32i");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011312,
99         "dEQP-GLES31.functional.image_load_sto",
100         "re.2d.format_reinterpret.rgba8ui_rgba8");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011313,
103         "dEQP-GLES31.functional.image_load_store.",
104         "2d.format_reinterpret.rgba8ui_rgba8_snorm");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011314,
107         "dEQP-GLES31.functional.image_load_st",
108         "ore.2d.format_reinterpret.r32ui_r32f");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011315,
111         "dEQP-GLES31.functional.image_load_sto",
112         "re.2d.format_reinterpret.r32ui_rgba8ui");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011316,
115         "dEQP-GLES31.functional.image_load_sto",
116         "re.2d.format_reinterpret.r32ui_rgba8i");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011317,
119         "dEQP-GLES31.functional.image_load_st",
120         "ore.2d.format_reinterpret.r32ui_r32i");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011318,
123         "dEQP-GLES31.functional.image_load_st",
124         "ore.2d.format_reinterpret.r32ui_rgba8");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011319,
127         "dEQP-GLES31.functional.image_load_store",
128         ".2d.format_reinterpret.r32ui_rgba8_snorm");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011320,
131         "dEQP-GLES31.functional.image_load_stor",
132         "e.2d.format_reinterpret.rgba32i_rgba32f");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011321,
135         "dEQP-GLES31.functional.image_load_store",
136         ".2d.format_reinterpret.rgba32i_rgba32ui");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011322,
139         "dEQP-GLES31.functional.image_load_stor",
140         "e.2d.format_reinterpret.rgba16i_rgba16f");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011323,
143         "dEQP-GLES31.functional.image_load_store",
144         ".2d.format_reinterpret.rgba16i_rgba16ui");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011324,
147         "dEQP-GLES31.functional.image_load_st",
148         "ore.2d.format_reinterpret.rgba8i_r32f");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011325,
151         "dEQP-GLES31.functional.image_load_stor",
152         "e.2d.format_reinterpret.rgba8i_rgba8ui");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011326,
155         "dEQP-GLES31.functional.image_load_sto",
156         "re.2d.format_reinterpret.rgba8i_r32ui");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011327,
159         "dEQP-GLES31.functional.image_load_st",
160         "ore.2d.format_reinterpret.rgba8i_r32i");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011328,
163         "dEQP-GLES31.functional.image_load_sto",
164         "re.2d.format_reinterpret.rgba8i_rgba8");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011329,
167         "dEQP-GLES31.functional.image_load_store.",
168         "2d.format_reinterpret.rgba8i_rgba8_snorm");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011330,
171         "dEQP-GLES31.functional.image_load_s",
172         "tore.2d.format_reinterpret.r32i_r32f");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011331,
175         "dEQP-GLES31.functional.image_load_sto",
176         "re.2d.format_reinterpret.r32i_rgba8ui");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011332,
179         "dEQP-GLES31.functional.image_load_st",
180         "ore.2d.format_reinterpret.r32i_r32ui");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011333,
183         "dEQP-GLES31.functional.image_load_st",
184         "ore.2d.format_reinterpret.r32i_rgba8i");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011334,
187         "dEQP-GLES31.functional.image_load_st",
188         "ore.2d.format_reinterpret.r32i_rgba8");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011335,
191         "dEQP-GLES31.functional.image_load_store",
192         ".2d.format_reinterpret.r32i_rgba8_snorm");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011336,
195         "dEQP-GLES31.functional.image_load_st",
196         "ore.2d.format_reinterpret.rgba8_r32f");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011337,
199         "dEQP-GLES31.functional.image_load_sto",
200         "re.2d.format_reinterpret.rgba8_rgba8ui");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011338,
203         "dEQP-GLES31.functional.image_load_st",
204         "ore.2d.format_reinterpret.rgba8_r32ui");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011339,
207         "dEQP-GLES31.functional.image_load_sto",
208         "re.2d.format_reinterpret.rgba8_rgba8i");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011340,
211         "dEQP-GLES31.functional.image_load_st",
212         "ore.2d.format_reinterpret.rgba8_r32i");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011341,
215         "dEQP-GLES31.functional.image_load_store",
216         ".2d.format_reinterpret.rgba8_rgba8_snorm");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011342,
219         "dEQP-GLES31.functional.image_load_store",
220         ".2d.format_reinterpret.rgba8_snorm_r32f");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011343,
223         "dEQP-GLES31.functional.image_load_store.",
224         "2d.format_reinterpret.rgba8_snorm_rgba8ui");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011344,
227         "dEQP-GLES31.functional.image_load_store",
228         ".2d.format_reinterpret.rgba8_snorm_r32ui");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011345,
231         "dEQP-GLES31.functional.image_load_store.",
232         "2d.format_reinterpret.rgba8_snorm_rgba8i");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011346,
235         "dEQP-GLES31.functional.image_load_store",
236         ".2d.format_reinterpret.rgba8_snorm_r32i");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles310012TestSuite, TestCase_011347,
239         "dEQP-GLES31.functional.image_load_store",
240         ".2d.format_reinterpret.rgba8_snorm_rgba8");
241