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 "../ActsDeqpgles30025TestSuite.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(ActsDeqpgles30025TestSuite, TestCase_024537, 27 "dEQP-GLES3.functional.texture.fil", 28 "tering.3d.formats.rgba16f_nearest"); 29 30 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024538, 31 "dEQP-GLES3.functional.texture.fi", 32 "ltering.3d.formats.rgba16f_linear"); 33 34 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024539, 35 "dEQP-GLES3.functional.texture.filtering.", 36 "3d.formats.rgba16f_nearest_mipmap_nearest"); 37 38 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024540, 39 "dEQP-GLES3.functional.texture.filtering.", 40 "3d.formats.rgba16f_linear_mipmap_nearest"); 41 42 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024541, 43 "dEQP-GLES3.functional.texture.filtering.", 44 "3d.formats.rgba16f_nearest_mipmap_linear"); 45 46 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024542, 47 "dEQP-GLES3.functional.texture.filtering", 48 ".3d.formats.rgba16f_linear_mipmap_linear"); 49 50 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024543, 51 "dEQP-GLES3.functional.texture.filter", 52 "ing.3d.formats.r11f_g11f_b10f_nearest"); 53 54 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024544, 55 "dEQP-GLES3.functional.texture.filter", 56 "ing.3d.formats.r11f_g11f_b10f_linear"); 57 58 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024545, 59 "dEQP-GLES3.functional.texture.filtering.3d.f", 60 "ormats.r11f_g11f_b10f_nearest_mipmap_nearest"); 61 62 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024546, 63 "dEQP-GLES3.functional.texture.filtering.3d.", 64 "formats.r11f_g11f_b10f_linear_mipmap_nearest"); 65 66 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024547, 67 "dEQP-GLES3.functional.texture.filtering.3d.", 68 "formats.r11f_g11f_b10f_nearest_mipmap_linear"); 69 70 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024548, 71 "dEQP-GLES3.functional.texture.filtering.3d.", 72 "formats.r11f_g11f_b10f_linear_mipmap_linear"); 73 74 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024549, 75 "dEQP-GLES3.functional.texture.fil", 76 "tering.3d.formats.rgb9_e5_nearest"); 77 78 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024550, 79 "dEQP-GLES3.functional.texture.fi", 80 "ltering.3d.formats.rgb9_e5_linear"); 81 82 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024551, 83 "dEQP-GLES3.functional.texture.filtering.", 84 "3d.formats.rgb9_e5_nearest_mipmap_nearest"); 85 86 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024552, 87 "dEQP-GLES3.functional.texture.filtering.", 88 "3d.formats.rgb9_e5_linear_mipmap_nearest"); 89 90 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024553, 91 "dEQP-GLES3.functional.texture.filtering.", 92 "3d.formats.rgb9_e5_nearest_mipmap_linear"); 93 94 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024554, 95 "dEQP-GLES3.functional.texture.filtering", 96 ".3d.formats.rgb9_e5_linear_mipmap_linear"); 97 98 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024555, 99 "dEQP-GLES3.functional.texture.fi", 100 "ltering.3d.formats.rgba8_nearest"); 101 102 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024556, 103 "dEQP-GLES3.functional.texture.f", 104 "iltering.3d.formats.rgba8_linear"); 105 106 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024557, 107 "dEQP-GLES3.functional.texture.filtering", 108 ".3d.formats.rgba8_nearest_mipmap_nearest"); 109 110 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024558, 111 "dEQP-GLES3.functional.texture.filtering", 112 ".3d.formats.rgba8_linear_mipmap_nearest"); 113 114 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024559, 115 "dEQP-GLES3.functional.texture.filtering", 116 ".3d.formats.rgba8_nearest_mipmap_linear"); 117 118 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024560, 119 "dEQP-GLES3.functional.texture.filterin", 120 "g.3d.formats.rgba8_linear_mipmap_linear"); 121 122 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024561, 123 "dEQP-GLES3.functional.texture.filte", 124 "ring.3d.formats.rgba8_snorm_nearest"); 125 126 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024562, 127 "dEQP-GLES3.functional.texture.filt", 128 "ering.3d.formats.rgba8_snorm_linear"); 129 130 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024563, 131 "dEQP-GLES3.functional.texture.filtering.3d", 132 ".formats.rgba8_snorm_nearest_mipmap_nearest"); 133 134 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024564, 135 "dEQP-GLES3.functional.texture.filtering.3d", 136 ".formats.rgba8_snorm_linear_mipmap_nearest"); 137 138 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024565, 139 "dEQP-GLES3.functional.texture.filtering.3d", 140 ".formats.rgba8_snorm_nearest_mipmap_linear"); 141 142 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024566, 143 "dEQP-GLES3.functional.texture.filtering.3", 144 "d.formats.rgba8_snorm_linear_mipmap_linear"); 145 146 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024567, 147 "dEQP-GLES3.functional.texture.fi", 148 "ltering.3d.formats.rgb565_nearest"); 149 150 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024568, 151 "dEQP-GLES3.functional.texture.fi", 152 "ltering.3d.formats.rgb565_linear"); 153 154 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024569, 155 "dEQP-GLES3.functional.texture.filtering.", 156 "3d.formats.rgb565_nearest_mipmap_nearest"); 157 158 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024570, 159 "dEQP-GLES3.functional.texture.filtering", 160 ".3d.formats.rgb565_linear_mipmap_nearest"); 161 162 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024571, 163 "dEQP-GLES3.functional.texture.filtering", 164 ".3d.formats.rgb565_nearest_mipmap_linear"); 165 166 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024572, 167 "dEQP-GLES3.functional.texture.filtering", 168 ".3d.formats.rgb565_linear_mipmap_linear"); 169 170 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024573, 171 "dEQP-GLES3.functional.texture.fi", 172 "ltering.3d.formats.rgba4_nearest"); 173 174 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024574, 175 "dEQP-GLES3.functional.texture.f", 176 "iltering.3d.formats.rgba4_linear"); 177 178 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024575, 179 "dEQP-GLES3.functional.texture.filtering", 180 ".3d.formats.rgba4_nearest_mipmap_nearest"); 181 182 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024576, 183 "dEQP-GLES3.functional.texture.filtering", 184 ".3d.formats.rgba4_linear_mipmap_nearest"); 185 186 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024577, 187 "dEQP-GLES3.functional.texture.filtering", 188 ".3d.formats.rgba4_nearest_mipmap_linear"); 189 190 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024578, 191 "dEQP-GLES3.functional.texture.filterin", 192 "g.3d.formats.rgba4_linear_mipmap_linear"); 193 194 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024579, 195 "dEQP-GLES3.functional.texture.fil", 196 "tering.3d.formats.rgb5_a1_nearest"); 197 198 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024580, 199 "dEQP-GLES3.functional.texture.fi", 200 "ltering.3d.formats.rgb5_a1_linear"); 201 202 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024581, 203 "dEQP-GLES3.functional.texture.filtering.", 204 "3d.formats.rgb5_a1_nearest_mipmap_nearest"); 205 206 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024582, 207 "dEQP-GLES3.functional.texture.filtering.", 208 "3d.formats.rgb5_a1_linear_mipmap_nearest"); 209 210 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024583, 211 "dEQP-GLES3.functional.texture.filtering.", 212 "3d.formats.rgb5_a1_nearest_mipmap_linear"); 213 214 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024584, 215 "dEQP-GLES3.functional.texture.filtering", 216 ".3d.formats.rgb5_a1_linear_mipmap_linear"); 217 218 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024585, 219 "dEQP-GLES3.functional.texture.filte", 220 "ring.3d.formats.srgb8_alpha8_nearest"); 221 222 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024586, 223 "dEQP-GLES3.functional.texture.filte", 224 "ring.3d.formats.srgb8_alpha8_linear"); 225 226 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024587, 227 "dEQP-GLES3.functional.texture.filtering.3d.", 228 "formats.srgb8_alpha8_nearest_mipmap_nearest"); 229 230 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024588, 231 "dEQP-GLES3.functional.texture.filtering.3d", 232 ".formats.srgb8_alpha8_linear_mipmap_nearest"); 233 234 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024589, 235 "dEQP-GLES3.functional.texture.filtering.3d", 236 ".formats.srgb8_alpha8_nearest_mipmap_linear"); 237 238 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024590, 239 "dEQP-GLES3.functional.texture.filtering.3d", 240 ".formats.srgb8_alpha8_linear_mipmap_linear"); 241 242 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024591, 243 "dEQP-GLES3.functional.texture.fil", 244 "tering.3d.formats.srgb_r8_nearest"); 245 246 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024592, 247 "dEQP-GLES3.functional.texture.fi", 248 "ltering.3d.formats.srgb_r8_linear"); 249 250 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024593, 251 "dEQP-GLES3.functional.texture.filtering.", 252 "3d.formats.srgb_r8_nearest_mipmap_nearest"); 253 254 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024594, 255 "dEQP-GLES3.functional.texture.filtering.", 256 "3d.formats.srgb_r8_linear_mipmap_nearest"); 257 258 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024595, 259 "dEQP-GLES3.functional.texture.filtering.", 260 "3d.formats.srgb_r8_nearest_mipmap_linear"); 261 262 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024596, 263 "dEQP-GLES3.functional.texture.filtering", 264 ".3d.formats.srgb_r8_linear_mipmap_linear"); 265 266 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024597, 267 "dEQP-GLES3.functional.texture.fil", 268 "tering.3d.formats.srgb_rg8_nearest"); 269 270 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024598, 271 "dEQP-GLES3.functional.texture.fil", 272 "tering.3d.formats.srgb_rg8_linear"); 273 274 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024599, 275 "dEQP-GLES3.functional.texture.filtering.3", 276 "d.formats.srgb_rg8_nearest_mipmap_nearest"); 277 278 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024600, 279 "dEQP-GLES3.functional.texture.filtering.", 280 "3d.formats.srgb_rg8_linear_mipmap_nearest"); 281 282 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024601, 283 "dEQP-GLES3.functional.texture.filtering.", 284 "3d.formats.srgb_rg8_nearest_mipmap_linear"); 285 286 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024602, 287 "dEQP-GLES3.functional.texture.filtering.", 288 "3d.formats.srgb_rg8_linear_mipmap_linear"); 289 290 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024603, 291 "dEQP-GLES3.functional.texture.fil", 292 "tering.3d.formats.rgb10_a2_nearest"); 293 294 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024604, 295 "dEQP-GLES3.functional.texture.fil", 296 "tering.3d.formats.rgb10_a2_linear"); 297 298 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024605, 299 "dEQP-GLES3.functional.texture.filtering.3", 300 "d.formats.rgb10_a2_nearest_mipmap_nearest"); 301 302 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024606, 303 "dEQP-GLES3.functional.texture.filtering.", 304 "3d.formats.rgb10_a2_linear_mipmap_nearest"); 305 306 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024607, 307 "dEQP-GLES3.functional.texture.filtering.", 308 "3d.formats.rgb10_a2_nearest_mipmap_linear"); 309 310 static SHRINK_HWTEST_F(ActsDeqpgles30025TestSuite, TestCase_024608, 311 "dEQP-GLES3.functional.texture.filtering.", 312 "3d.formats.rgb10_a2_linear_mipmap_linear"); 313