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 "../Khrgles3BaseFunc.h" 19 #include "../ActsKhrgles30001TestSuite.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(ActsKhrgles30001TestSuite, TestCase_000512, 27 "KHR-GLES3.shaders.loops.while_const", 28 "ant_iterations.basic_lowp_int_vertex"); 29 30 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000513, 31 "KHR-GLES3.shaders.loops.while_consta", 32 "nt_iterations.basic_lowp_int_fragment"); 33 34 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000514, 35 "KHR-GLES3.shaders.loops.while_constan", 36 "t_iterations.basic_mediump_int_vertex"); 37 38 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000515, 39 "KHR-GLES3.shaders.loops.while_constant", 40 "_iterations.basic_mediump_int_fragment"); 41 42 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000516, 43 "KHR-GLES3.shaders.loops.while_constant", 44 "_iterations.basic_mediump_float_vertex"); 45 46 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000517, 47 "KHR-GLES3.shaders.loops.while_constant_", 48 "iterations.basic_mediump_float_fragment"); 49 50 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000518, 51 "KHR-GLES3.shaders.loops.while_consta", 52 "nt_iterations.basic_highp_int_vertex"); 53 54 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000519, 55 "KHR-GLES3.shaders.loops.while_constan", 56 "t_iterations.basic_highp_int_fragment"); 57 58 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000520, 59 "KHR-GLES3.shaders.loops.while_constan", 60 "t_iterations.basic_highp_float_vertex"); 61 62 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000521, 63 "KHR-GLES3.shaders.loops.while_constant", 64 "_iterations.basic_highp_float_fragment"); 65 66 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000522, 67 "KHR-GLES3.shaders.loops.while_con", 68 "stant_iterations.empty_body_vertex"); 69 70 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000523, 71 "KHR-GLES3.shaders.loops.while_cons", 72 "tant_iterations.empty_body_fragment"); 73 74 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000524, 75 "KHR-GLES3.shaders.loops.while_constant_iteration", 76 "s.infinite_with_unconditional_break_first_vertex"); 77 78 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000525, 79 "KHR-GLES3.shaders.loops.while_constant_iterations", 80 ".infinite_with_unconditional_break_first_fragment"); 81 82 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000526, 83 "KHR-GLES3.shaders.loops.while_constant_iteratio", 84 "ns.infinite_with_unconditional_break_last_vertex"); 85 86 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000527, 87 "KHR-GLES3.shaders.loops.while_constant_iteration", 88 "s.infinite_with_unconditional_break_last_fragment"); 89 90 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000528, 91 "KHR-GLES3.shaders.loops.while_constant_itera", 92 "tions.infinite_with_conditional_break_vertex"); 93 94 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000529, 95 "KHR-GLES3.shaders.loops.while_constant_iterat", 96 "ions.infinite_with_conditional_break_fragment"); 97 98 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000530, 99 "KHR-GLES3.shaders.loops.while_consta", 100 "nt_iterations.single_statement_vertex"); 101 102 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000531, 103 "KHR-GLES3.shaders.loops.while_constan", 104 "t_iterations.single_statement_fragment"); 105 106 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000532, 107 "KHR-GLES3.shaders.loops.while_constan", 108 "t_iterations.compound_statement_vertex"); 109 110 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000533, 111 "KHR-GLES3.shaders.loops.while_constant", 112 "_iterations.compound_statement_fragment"); 113 114 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000534, 115 "KHR-GLES3.shaders.loops.while_constan", 116 "t_iterations.sequence_statement_vertex"); 117 118 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000535, 119 "KHR-GLES3.shaders.loops.while_constant", 120 "_iterations.sequence_statement_fragment"); 121 122 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000536, 123 "KHR-GLES3.shaders.loops.while_const", 124 "ant_iterations.no_iterations_vertex"); 125 126 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000537, 127 "KHR-GLES3.shaders.loops.while_consta", 128 "nt_iterations.no_iterations_fragment"); 129 130 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000538, 131 "KHR-GLES3.shaders.loops.while_consta", 132 "nt_iterations.single_iteration_vertex"); 133 134 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000539, 135 "KHR-GLES3.shaders.loops.while_constan", 136 "t_iterations.single_iteration_fragment"); 137 138 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000540, 139 "KHR-GLES3.shaders.loops.while_constant_", 140 "iterations.select_iteration_count_vertex"); 141 142 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000541, 143 "KHR-GLES3.shaders.loops.while_constant_i", 144 "terations.select_iteration_count_fragment"); 145 146 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000542, 147 "KHR-GLES3.shaders.loops.while_constant", 148 "_iterations.conditional_continue_vertex"); 149 150 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000543, 151 "KHR-GLES3.shaders.loops.while_constant_", 152 "iterations.conditional_continue_fragment"); 153 154 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000544, 155 "KHR-GLES3.shaders.loops.while_constant_", 156 "iterations.unconditional_continue_vertex"); 157 158 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000545, 159 "KHR-GLES3.shaders.loops.while_constant_i", 160 "terations.unconditional_continue_fragment"); 161 162 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000546, 163 "KHR-GLES3.shaders.loops.while_const", 164 "ant_iterations.only_continue_vertex"); 165 166 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000547, 167 "KHR-GLES3.shaders.loops.while_consta", 168 "nt_iterations.only_continue_fragment"); 169 170 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000548, 171 "KHR-GLES3.shaders.loops.while_consta", 172 "nt_iterations.double_continue_vertex"); 173 174 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000549, 175 "KHR-GLES3.shaders.loops.while_constan", 176 "t_iterations.double_continue_fragment"); 177 178 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000550, 179 "KHR-GLES3.shaders.loops.while_constan", 180 "t_iterations.conditional_break_vertex"); 181 182 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000551, 183 "KHR-GLES3.shaders.loops.while_constant", 184 "_iterations.conditional_break_fragment"); 185 186 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000552, 187 "KHR-GLES3.shaders.loops.while_constant", 188 "_iterations.unconditional_break_vertex"); 189 190 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000553, 191 "KHR-GLES3.shaders.loops.while_constant_", 192 "iterations.unconditional_break_fragment"); 193 194 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000554, 195 "KHR-GLES3.shaders.loops.while_const", 196 "ant_iterations.pre_increment_vertex"); 197 198 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000555, 199 "KHR-GLES3.shaders.loops.while_consta", 200 "nt_iterations.pre_increment_fragment"); 201 202 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000556, 203 "KHR-GLES3.shaders.loops.while_const", 204 "ant_iterations.post_increment_vertex"); 205 206 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000557, 207 "KHR-GLES3.shaders.loops.while_consta", 208 "nt_iterations.post_increment_fragment"); 209 210 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000558, 211 "KHR-GLES3.shaders.loops.while_constant", 212 "_iterations.mixed_break_continue_vertex"); 213 214 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000559, 215 "KHR-GLES3.shaders.loops.while_constant_", 216 "iterations.mixed_break_continue_fragment"); 217 218 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000560, 219 "KHR-GLES3.shaders.loops.while_const", 220 "ant_iterations.vector_counter_vertex"); 221 222 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000561, 223 "KHR-GLES3.shaders.loops.while_consta", 224 "nt_iterations.vector_counter_fragment"); 225 226 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000562, 227 "KHR-GLES3.shaders.loops.while_const", 228 "ant_iterations.101_iterations_vertex"); 229 230 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000563, 231 "KHR-GLES3.shaders.loops.while_consta", 232 "nt_iterations.101_iterations_fragment"); 233 234 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000564, 235 "KHR-GLES3.shaders.loops.while_co", 236 "nstant_iterations.sequence_vertex"); 237 238 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000565, 239 "KHR-GLES3.shaders.loops.while_con", 240 "stant_iterations.sequence_fragment"); 241 242 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000566, 243 "KHR-GLES3.shaders.loops.while_c", 244 "onstant_iterations.nested_vertex"); 245 246 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000567, 247 "KHR-GLES3.shaders.loops.while_co", 248 "nstant_iterations.nested_fragment"); 249 250 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000568, 251 "KHR-GLES3.shaders.loops.while_consta", 252 "nt_iterations.nested_sequence_vertex"); 253 254 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000569, 255 "KHR-GLES3.shaders.loops.while_constan", 256 "t_iterations.nested_sequence_fragment"); 257 258 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000570, 259 "KHR-GLES3.shaders.loops.while_constant_i", 260 "terations.nested_tricky_dataflow_1_vertex"); 261 262 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000571, 263 "KHR-GLES3.shaders.loops.while_constant_it", 264 "erations.nested_tricky_dataflow_1_fragment"); 265 266 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000572, 267 "KHR-GLES3.shaders.loops.while_constant_i", 268 "terations.nested_tricky_dataflow_2_vertex"); 269 270 static SHRINK_HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000573, 271 "KHR-GLES3.shaders.loops.while_constant_it", 272 "erations.nested_tricky_dataflow_2_fragment"); 273