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 "../ActsDeqpgles310013TestSuite.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(ActsDeqpgles310013TestSuite, TestCase_012279, 27 "dEQP-GLES31.functional.texture.filter", 28 "ing.cube_array.formats.rgba16f_nearest"); 29 30 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012280, 31 "dEQP-GLES31.functional.texture.filter", 32 "ing.cube_array.formats.rgba16f_linear"); 33 34 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012281, 35 "dEQP-GLES31.functional.texture.filtering.cube", 36 "_array.formats.rgba16f_nearest_mipmap_nearest"); 37 38 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012282, 39 "dEQP-GLES31.functional.texture.filtering.cub", 40 "e_array.formats.rgba16f_linear_mipmap_nearest"); 41 42 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012283, 43 "dEQP-GLES31.functional.texture.filtering.cub", 44 "e_array.formats.rgba16f_nearest_mipmap_linear"); 45 46 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012284, 47 "dEQP-GLES31.functional.texture.filtering.cub", 48 "e_array.formats.rgba16f_linear_mipmap_linear"); 49 50 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012285, 51 "dEQP-GLES31.functional.texture.filtering.", 52 "cube_array.formats.r11f_g11f_b10f_nearest"); 53 54 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012286, 55 "dEQP-GLES31.functional.texture.filtering", 56 ".cube_array.formats.r11f_g11f_b10f_linear"); 57 58 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012287, 59 "dEQP-GLES31.functional.texture.filtering.cube_ar", 60 "ray.formats.r11f_g11f_b10f_nearest_mipmap_nearest"); 61 62 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012288, 63 "dEQP-GLES31.functional.texture.filtering.cube_ar", 64 "ray.formats.r11f_g11f_b10f_linear_mipmap_nearest"); 65 66 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012289, 67 "dEQP-GLES31.functional.texture.filtering.cube_ar", 68 "ray.formats.r11f_g11f_b10f_nearest_mipmap_linear"); 69 70 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012290, 71 "dEQP-GLES31.functional.texture.filtering.cube_a", 72 "rray.formats.r11f_g11f_b10f_linear_mipmap_linear"); 73 74 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012291, 75 "dEQP-GLES31.functional.texture.filter", 76 "ing.cube_array.formats.rgb9_e5_nearest"); 77 78 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012292, 79 "dEQP-GLES31.functional.texture.filter", 80 "ing.cube_array.formats.rgb9_e5_linear"); 81 82 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012293, 83 "dEQP-GLES31.functional.texture.filtering.cube", 84 "_array.formats.rgb9_e5_nearest_mipmap_nearest"); 85 86 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012294, 87 "dEQP-GLES31.functional.texture.filtering.cub", 88 "e_array.formats.rgb9_e5_linear_mipmap_nearest"); 89 90 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012295, 91 "dEQP-GLES31.functional.texture.filtering.cub", 92 "e_array.formats.rgb9_e5_nearest_mipmap_linear"); 93 94 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012296, 95 "dEQP-GLES31.functional.texture.filtering.cub", 96 "e_array.formats.rgb9_e5_linear_mipmap_linear"); 97 98 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012297, 99 "dEQP-GLES31.functional.texture.filte", 100 "ring.cube_array.formats.rgba8_nearest"); 101 102 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012298, 103 "dEQP-GLES31.functional.texture.filte", 104 "ring.cube_array.formats.rgba8_linear"); 105 106 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012299, 107 "dEQP-GLES31.functional.texture.filtering.cub", 108 "e_array.formats.rgba8_nearest_mipmap_nearest"); 109 110 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012300, 111 "dEQP-GLES31.functional.texture.filtering.cu", 112 "be_array.formats.rgba8_linear_mipmap_nearest"); 113 114 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012301, 115 "dEQP-GLES31.functional.texture.filtering.cu", 116 "be_array.formats.rgba8_nearest_mipmap_linear"); 117 118 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012302, 119 "dEQP-GLES31.functional.texture.filtering.cu", 120 "be_array.formats.rgba8_linear_mipmap_linear"); 121 122 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012303, 123 "dEQP-GLES31.functional.texture.filterin", 124 "g.cube_array.formats.rgba8_snorm_nearest"); 125 126 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012304, 127 "dEQP-GLES31.functional.texture.filterin", 128 "g.cube_array.formats.rgba8_snorm_linear"); 129 130 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012305, 131 "dEQP-GLES31.functional.texture.filtering.cube_a", 132 "rray.formats.rgba8_snorm_nearest_mipmap_nearest"); 133 134 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012306, 135 "dEQP-GLES31.functional.texture.filtering.cube_", 136 "array.formats.rgba8_snorm_linear_mipmap_nearest"); 137 138 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012307, 139 "dEQP-GLES31.functional.texture.filtering.cube_", 140 "array.formats.rgba8_snorm_nearest_mipmap_linear"); 141 142 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012308, 143 "dEQP-GLES31.functional.texture.filtering.cube_", 144 "array.formats.rgba8_snorm_linear_mipmap_linear"); 145 146 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012309, 147 "dEQP-GLES31.functional.texture.filter", 148 "ing.cube_array.formats.rgb565_nearest"); 149 150 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012310, 151 "dEQP-GLES31.functional.texture.filte", 152 "ring.cube_array.formats.rgb565_linear"); 153 154 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012311, 155 "dEQP-GLES31.functional.texture.filtering.cub", 156 "e_array.formats.rgb565_nearest_mipmap_nearest"); 157 158 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012312, 159 "dEQP-GLES31.functional.texture.filtering.cub", 160 "e_array.formats.rgb565_linear_mipmap_nearest"); 161 162 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012313, 163 "dEQP-GLES31.functional.texture.filtering.cub", 164 "e_array.formats.rgb565_nearest_mipmap_linear"); 165 166 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012314, 167 "dEQP-GLES31.functional.texture.filtering.cu", 168 "be_array.formats.rgb565_linear_mipmap_linear"); 169 170 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012315, 171 "dEQP-GLES31.functional.texture.filte", 172 "ring.cube_array.formats.rgba4_nearest"); 173 174 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012316, 175 "dEQP-GLES31.functional.texture.filte", 176 "ring.cube_array.formats.rgba4_linear"); 177 178 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012317, 179 "dEQP-GLES31.functional.texture.filtering.cub", 180 "e_array.formats.rgba4_nearest_mipmap_nearest"); 181 182 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012318, 183 "dEQP-GLES31.functional.texture.filtering.cu", 184 "be_array.formats.rgba4_linear_mipmap_nearest"); 185 186 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012319, 187 "dEQP-GLES31.functional.texture.filtering.cu", 188 "be_array.formats.rgba4_nearest_mipmap_linear"); 189 190 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012320, 191 "dEQP-GLES31.functional.texture.filtering.cu", 192 "be_array.formats.rgba4_linear_mipmap_linear"); 193 194 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012321, 195 "dEQP-GLES31.functional.texture.filter", 196 "ing.cube_array.formats.rgb5_a1_nearest"); 197 198 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012322, 199 "dEQP-GLES31.functional.texture.filter", 200 "ing.cube_array.formats.rgb5_a1_linear"); 201 202 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012323, 203 "dEQP-GLES31.functional.texture.filtering.cube", 204 "_array.formats.rgb5_a1_nearest_mipmap_nearest"); 205 206 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012324, 207 "dEQP-GLES31.functional.texture.filtering.cub", 208 "e_array.formats.rgb5_a1_linear_mipmap_nearest"); 209 210 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012325, 211 "dEQP-GLES31.functional.texture.filtering.cub", 212 "e_array.formats.rgb5_a1_nearest_mipmap_linear"); 213 214 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012326, 215 "dEQP-GLES31.functional.texture.filtering.cub", 216 "e_array.formats.rgb5_a1_linear_mipmap_linear"); 217 218 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012327, 219 "dEQP-GLES31.functional.texture.filt", 220 "ering.cube_array.formats.sr8_nearest"); 221 222 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012328, 223 "dEQP-GLES31.functional.texture.filt", 224 "ering.cube_array.formats.sr8_linear"); 225 226 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012329, 227 "dEQP-GLES31.functional.texture.filtering.cu", 228 "be_array.formats.sr8_nearest_mipmap_nearest"); 229 230 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012330, 231 "dEQP-GLES31.functional.texture.filtering.c", 232 "ube_array.formats.sr8_linear_mipmap_nearest"); 233 234 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012331, 235 "dEQP-GLES31.functional.texture.filtering.c", 236 "ube_array.formats.sr8_nearest_mipmap_linear"); 237 238 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012332, 239 "dEQP-GLES31.functional.texture.filtering.c", 240 "ube_array.formats.sr8_linear_mipmap_linear"); 241 242 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012333, 243 "dEQP-GLES31.functional.texture.filte", 244 "ring.cube_array.formats.srg8_nearest"); 245 246 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012334, 247 "dEQP-GLES31.functional.texture.filt", 248 "ering.cube_array.formats.srg8_linear"); 249 250 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012335, 251 "dEQP-GLES31.functional.texture.filtering.cu", 252 "be_array.formats.srg8_nearest_mipmap_nearest"); 253 254 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012336, 255 "dEQP-GLES31.functional.texture.filtering.cu", 256 "be_array.formats.srg8_linear_mipmap_nearest"); 257 258 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012337, 259 "dEQP-GLES31.functional.texture.filtering.cu", 260 "be_array.formats.srg8_nearest_mipmap_linear"); 261 262 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012338, 263 "dEQP-GLES31.functional.texture.filtering.c", 264 "ube_array.formats.srg8_linear_mipmap_linear"); 265 266 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012339, 267 "dEQP-GLES31.functional.texture.filtering", 268 ".cube_array.formats.srgb8_alpha8_nearest"); 269 270 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012340, 271 "dEQP-GLES31.functional.texture.filterin", 272 "g.cube_array.formats.srgb8_alpha8_linear"); 273 274 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012341, 275 "dEQP-GLES31.functional.texture.filtering.cube_a", 276 "rray.formats.srgb8_alpha8_nearest_mipmap_nearest"); 277 278 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012342, 279 "dEQP-GLES31.functional.texture.filtering.cube_a", 280 "rray.formats.srgb8_alpha8_linear_mipmap_nearest"); 281 282 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012343, 283 "dEQP-GLES31.functional.texture.filtering.cube_a", 284 "rray.formats.srgb8_alpha8_nearest_mipmap_linear"); 285 286 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012344, 287 "dEQP-GLES31.functional.texture.filtering.cube_", 288 "array.formats.srgb8_alpha8_linear_mipmap_linear"); 289 290 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012345, 291 "dEQP-GLES31.functional.texture.filteri", 292 "ng.cube_array.formats.rgb10_a2_nearest"); 293 294 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012346, 295 "dEQP-GLES31.functional.texture.filter", 296 "ing.cube_array.formats.rgb10_a2_linear"); 297 298 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012347, 299 "dEQP-GLES31.functional.texture.filtering.cube", 300 "_array.formats.rgb10_a2_nearest_mipmap_nearest"); 301 302 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012348, 303 "dEQP-GLES31.functional.texture.filtering.cube", 304 "_array.formats.rgb10_a2_linear_mipmap_nearest"); 305 306 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012349, 307 "dEQP-GLES31.functional.texture.filtering.cube", 308 "_array.formats.rgb10_a2_nearest_mipmap_linear"); 309 310 static SHRINK_HWTEST_F(ActsDeqpgles310013TestSuite, TestCase_012350, 311 "dEQP-GLES31.functional.texture.filtering.cub", 312 "e_array.formats.rgb10_a2_linear_mipmap_linear"); 313