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 "../ActsDeqpgles30003TestSuite.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(ActsDeqpgles30003TestSuite, TestCase_002107, 27 "dEQP-GLES3.functional.shaders.conversio", 28 "ns.scalar_to_matrix.float_to_mat4_vertex"); 29 30 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002108, 31 "dEQP-GLES3.functional.shaders.conversion", 32 "s.scalar_to_matrix.float_to_mat4_fragment"); 33 34 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002109, 35 "dEQP-GLES3.functional.shaders.conversion", 36 "s.scalar_to_matrix.float_to_mat4x3_vertex"); 37 38 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002110, 39 "dEQP-GLES3.functional.shaders.conversions", 40 ".scalar_to_matrix.float_to_mat4x3_fragment"); 41 42 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002111, 43 "dEQP-GLES3.functional.shaders.conversion", 44 "s.scalar_to_matrix.float_to_mat4x2_vertex"); 45 46 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002112, 47 "dEQP-GLES3.functional.shaders.conversions", 48 ".scalar_to_matrix.float_to_mat4x2_fragment"); 49 50 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002113, 51 "dEQP-GLES3.functional.shaders.conversion", 52 "s.scalar_to_matrix.float_to_mat3x4_vertex"); 53 54 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002114, 55 "dEQP-GLES3.functional.shaders.conversions", 56 ".scalar_to_matrix.float_to_mat3x4_fragment"); 57 58 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002115, 59 "dEQP-GLES3.functional.shaders.conversio", 60 "ns.scalar_to_matrix.float_to_mat3_vertex"); 61 62 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002116, 63 "dEQP-GLES3.functional.shaders.conversion", 64 "s.scalar_to_matrix.float_to_mat3_fragment"); 65 66 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002117, 67 "dEQP-GLES3.functional.shaders.conversion", 68 "s.scalar_to_matrix.float_to_mat3x2_vertex"); 69 70 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002118, 71 "dEQP-GLES3.functional.shaders.conversions", 72 ".scalar_to_matrix.float_to_mat3x2_fragment"); 73 74 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002119, 75 "dEQP-GLES3.functional.shaders.conversion", 76 "s.scalar_to_matrix.float_to_mat2x4_vertex"); 77 78 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002120, 79 "dEQP-GLES3.functional.shaders.conversions", 80 ".scalar_to_matrix.float_to_mat2x4_fragment"); 81 82 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002121, 83 "dEQP-GLES3.functional.shaders.conversion", 84 "s.scalar_to_matrix.float_to_mat2x3_vertex"); 85 86 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002122, 87 "dEQP-GLES3.functional.shaders.conversions", 88 ".scalar_to_matrix.float_to_mat2x3_fragment"); 89 90 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002123, 91 "dEQP-GLES3.functional.shaders.conversio", 92 "ns.scalar_to_matrix.float_to_mat2_vertex"); 93 94 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002124, 95 "dEQP-GLES3.functional.shaders.conversion", 96 "s.scalar_to_matrix.float_to_mat2_fragment"); 97 98 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002125, 99 "dEQP-GLES3.functional.shaders.conversi", 100 "ons.scalar_to_matrix.int_to_mat4_vertex"); 101 102 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002126, 103 "dEQP-GLES3.functional.shaders.conversio", 104 "ns.scalar_to_matrix.int_to_mat4_fragment"); 105 106 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002127, 107 "dEQP-GLES3.functional.shaders.conversio", 108 "ns.scalar_to_matrix.int_to_mat4x3_vertex"); 109 110 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002128, 111 "dEQP-GLES3.functional.shaders.conversion", 112 "s.scalar_to_matrix.int_to_mat4x3_fragment"); 113 114 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002129, 115 "dEQP-GLES3.functional.shaders.conversio", 116 "ns.scalar_to_matrix.int_to_mat4x2_vertex"); 117 118 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002130, 119 "dEQP-GLES3.functional.shaders.conversion", 120 "s.scalar_to_matrix.int_to_mat4x2_fragment"); 121 122 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002131, 123 "dEQP-GLES3.functional.shaders.conversio", 124 "ns.scalar_to_matrix.int_to_mat3x4_vertex"); 125 126 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002132, 127 "dEQP-GLES3.functional.shaders.conversion", 128 "s.scalar_to_matrix.int_to_mat3x4_fragment"); 129 130 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002133, 131 "dEQP-GLES3.functional.shaders.conversi", 132 "ons.scalar_to_matrix.int_to_mat3_vertex"); 133 134 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002134, 135 "dEQP-GLES3.functional.shaders.conversio", 136 "ns.scalar_to_matrix.int_to_mat3_fragment"); 137 138 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002135, 139 "dEQP-GLES3.functional.shaders.conversio", 140 "ns.scalar_to_matrix.int_to_mat3x2_vertex"); 141 142 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002136, 143 "dEQP-GLES3.functional.shaders.conversion", 144 "s.scalar_to_matrix.int_to_mat3x2_fragment"); 145 146 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002137, 147 "dEQP-GLES3.functional.shaders.conversio", 148 "ns.scalar_to_matrix.int_to_mat2x4_vertex"); 149 150 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002138, 151 "dEQP-GLES3.functional.shaders.conversion", 152 "s.scalar_to_matrix.int_to_mat2x4_fragment"); 153 154 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002139, 155 "dEQP-GLES3.functional.shaders.conversio", 156 "ns.scalar_to_matrix.int_to_mat2x3_vertex"); 157 158 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002140, 159 "dEQP-GLES3.functional.shaders.conversion", 160 "s.scalar_to_matrix.int_to_mat2x3_fragment"); 161 162 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002141, 163 "dEQP-GLES3.functional.shaders.conversi", 164 "ons.scalar_to_matrix.int_to_mat2_vertex"); 165 166 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002142, 167 "dEQP-GLES3.functional.shaders.conversio", 168 "ns.scalar_to_matrix.int_to_mat2_fragment"); 169 170 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002143, 171 "dEQP-GLES3.functional.shaders.conversio", 172 "ns.scalar_to_matrix.uint_to_mat4_vertex"); 173 174 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002144, 175 "dEQP-GLES3.functional.shaders.conversion", 176 "s.scalar_to_matrix.uint_to_mat4_fragment"); 177 178 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002145, 179 "dEQP-GLES3.functional.shaders.conversion", 180 "s.scalar_to_matrix.uint_to_mat4x3_vertex"); 181 182 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002146, 183 "dEQP-GLES3.functional.shaders.conversions", 184 ".scalar_to_matrix.uint_to_mat4x3_fragment"); 185 186 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002147, 187 "dEQP-GLES3.functional.shaders.conversion", 188 "s.scalar_to_matrix.uint_to_mat4x2_vertex"); 189 190 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002148, 191 "dEQP-GLES3.functional.shaders.conversions", 192 ".scalar_to_matrix.uint_to_mat4x2_fragment"); 193 194 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002149, 195 "dEQP-GLES3.functional.shaders.conversion", 196 "s.scalar_to_matrix.uint_to_mat3x4_vertex"); 197 198 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002150, 199 "dEQP-GLES3.functional.shaders.conversions", 200 ".scalar_to_matrix.uint_to_mat3x4_fragment"); 201 202 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002151, 203 "dEQP-GLES3.functional.shaders.conversio", 204 "ns.scalar_to_matrix.uint_to_mat3_vertex"); 205 206 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002152, 207 "dEQP-GLES3.functional.shaders.conversion", 208 "s.scalar_to_matrix.uint_to_mat3_fragment"); 209 210 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002153, 211 "dEQP-GLES3.functional.shaders.conversion", 212 "s.scalar_to_matrix.uint_to_mat3x2_vertex"); 213 214 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002154, 215 "dEQP-GLES3.functional.shaders.conversions", 216 ".scalar_to_matrix.uint_to_mat3x2_fragment"); 217 218 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002155, 219 "dEQP-GLES3.functional.shaders.conversion", 220 "s.scalar_to_matrix.uint_to_mat2x4_vertex"); 221 222 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002156, 223 "dEQP-GLES3.functional.shaders.conversions", 224 ".scalar_to_matrix.uint_to_mat2x4_fragment"); 225 226 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002157, 227 "dEQP-GLES3.functional.shaders.conversion", 228 "s.scalar_to_matrix.uint_to_mat2x3_vertex"); 229 230 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002158, 231 "dEQP-GLES3.functional.shaders.conversions", 232 ".scalar_to_matrix.uint_to_mat2x3_fragment"); 233 234 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002159, 235 "dEQP-GLES3.functional.shaders.conversio", 236 "ns.scalar_to_matrix.uint_to_mat2_vertex"); 237 238 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002160, 239 "dEQP-GLES3.functional.shaders.conversion", 240 "s.scalar_to_matrix.uint_to_mat2_fragment"); 241 242 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002161, 243 "dEQP-GLES3.functional.shaders.conversio", 244 "ns.scalar_to_matrix.bool_to_mat4_vertex"); 245 246 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002162, 247 "dEQP-GLES3.functional.shaders.conversion", 248 "s.scalar_to_matrix.bool_to_mat4_fragment"); 249 250 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002163, 251 "dEQP-GLES3.functional.shaders.conversion", 252 "s.scalar_to_matrix.bool_to_mat4x3_vertex"); 253 254 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002164, 255 "dEQP-GLES3.functional.shaders.conversions", 256 ".scalar_to_matrix.bool_to_mat4x3_fragment"); 257 258 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002165, 259 "dEQP-GLES3.functional.shaders.conversion", 260 "s.scalar_to_matrix.bool_to_mat4x2_vertex"); 261 262 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002166, 263 "dEQP-GLES3.functional.shaders.conversions", 264 ".scalar_to_matrix.bool_to_mat4x2_fragment"); 265 266 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002167, 267 "dEQP-GLES3.functional.shaders.conversion", 268 "s.scalar_to_matrix.bool_to_mat3x4_vertex"); 269 270 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002168, 271 "dEQP-GLES3.functional.shaders.conversions", 272 ".scalar_to_matrix.bool_to_mat3x4_fragment"); 273 274 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002169, 275 "dEQP-GLES3.functional.shaders.conversio", 276 "ns.scalar_to_matrix.bool_to_mat3_vertex"); 277 278 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002170, 279 "dEQP-GLES3.functional.shaders.conversion", 280 "s.scalar_to_matrix.bool_to_mat3_fragment"); 281 282 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002171, 283 "dEQP-GLES3.functional.shaders.conversion", 284 "s.scalar_to_matrix.bool_to_mat3x2_vertex"); 285 286 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002172, 287 "dEQP-GLES3.functional.shaders.conversions", 288 ".scalar_to_matrix.bool_to_mat3x2_fragment"); 289 290 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002173, 291 "dEQP-GLES3.functional.shaders.conversion", 292 "s.scalar_to_matrix.bool_to_mat2x4_vertex"); 293 294 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002174, 295 "dEQP-GLES3.functional.shaders.conversions", 296 ".scalar_to_matrix.bool_to_mat2x4_fragment"); 297 298 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002175, 299 "dEQP-GLES3.functional.shaders.conversion", 300 "s.scalar_to_matrix.bool_to_mat2x3_vertex"); 301 302 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002176, 303 "dEQP-GLES3.functional.shaders.conversions", 304 ".scalar_to_matrix.bool_to_mat2x3_fragment"); 305 306 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002177, 307 "dEQP-GLES3.functional.shaders.conversio", 308 "ns.scalar_to_matrix.bool_to_mat2_vertex"); 309 310 static SHRINK_HWTEST_F(ActsDeqpgles30003TestSuite, TestCase_002178, 311 "dEQP-GLES3.functional.shaders.conversion", 312 "s.scalar_to_matrix.bool_to_mat2_fragment"); 313