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 "../ActsDeqpgles30001TestSuite.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(ActsDeqpgles30001TestSuite, TestCase_000297, 27 "dEQP-GLES3.functional.buffer.map.", 28 "read.usage_hints.array_stream_draw"); 29 30 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000298, 31 "dEQP-GLES3.functional.buffer.map.", 32 "read.usage_hints.array_stream_read"); 33 34 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000299, 35 "dEQP-GLES3.functional.buffer.map.", 36 "read.usage_hints.array_stream_copy"); 37 38 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000300, 39 "dEQP-GLES3.functional.buffer.map.", 40 "read.usage_hints.array_static_draw"); 41 42 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000301, 43 "dEQP-GLES3.functional.buffer.map.", 44 "read.usage_hints.array_static_read"); 45 46 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000302, 47 "dEQP-GLES3.functional.buffer.map.", 48 "read.usage_hints.array_static_copy"); 49 50 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000303, 51 "dEQP-GLES3.functional.buffer.map.r", 52 "ead.usage_hints.array_dynamic_draw"); 53 54 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000304, 55 "dEQP-GLES3.functional.buffer.map.r", 56 "ead.usage_hints.array_dynamic_read"); 57 58 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000305, 59 "dEQP-GLES3.functional.buffer.map.r", 60 "ead.usage_hints.array_dynamic_copy"); 61 62 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000306, 63 "dEQP-GLES3.functional.buffer.map.re", 64 "ad.usage_hints.copy_read_stream_draw"); 65 66 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000307, 67 "dEQP-GLES3.functional.buffer.map.re", 68 "ad.usage_hints.copy_read_stream_read"); 69 70 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000308, 71 "dEQP-GLES3.functional.buffer.map.re", 72 "ad.usage_hints.copy_read_stream_copy"); 73 74 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000309, 75 "dEQP-GLES3.functional.buffer.map.re", 76 "ad.usage_hints.copy_read_static_draw"); 77 78 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000310, 79 "dEQP-GLES3.functional.buffer.map.re", 80 "ad.usage_hints.copy_read_static_read"); 81 82 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000311, 83 "dEQP-GLES3.functional.buffer.map.re", 84 "ad.usage_hints.copy_read_static_copy"); 85 86 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000312, 87 "dEQP-GLES3.functional.buffer.map.rea", 88 "d.usage_hints.copy_read_dynamic_draw"); 89 90 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000313, 91 "dEQP-GLES3.functional.buffer.map.rea", 92 "d.usage_hints.copy_read_dynamic_read"); 93 94 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000314, 95 "dEQP-GLES3.functional.buffer.map.rea", 96 "d.usage_hints.copy_read_dynamic_copy"); 97 98 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000315, 99 "dEQP-GLES3.functional.buffer.map.rea", 100 "d.usage_hints.copy_write_stream_draw"); 101 102 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000316, 103 "dEQP-GLES3.functional.buffer.map.rea", 104 "d.usage_hints.copy_write_stream_read"); 105 106 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000317, 107 "dEQP-GLES3.functional.buffer.map.rea", 108 "d.usage_hints.copy_write_stream_copy"); 109 110 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000318, 111 "dEQP-GLES3.functional.buffer.map.rea", 112 "d.usage_hints.copy_write_static_draw"); 113 114 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000319, 115 "dEQP-GLES3.functional.buffer.map.rea", 116 "d.usage_hints.copy_write_static_read"); 117 118 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000320, 119 "dEQP-GLES3.functional.buffer.map.rea", 120 "d.usage_hints.copy_write_static_copy"); 121 122 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000321, 123 "dEQP-GLES3.functional.buffer.map.rea", 124 "d.usage_hints.copy_write_dynamic_draw"); 125 126 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000322, 127 "dEQP-GLES3.functional.buffer.map.rea", 128 "d.usage_hints.copy_write_dynamic_read"); 129 130 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000323, 131 "dEQP-GLES3.functional.buffer.map.rea", 132 "d.usage_hints.copy_write_dynamic_copy"); 133 134 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000324, 135 "dEQP-GLES3.functional.buffer.map.read", 136 ".usage_hints.element_array_stream_draw"); 137 138 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000325, 139 "dEQP-GLES3.functional.buffer.map.read", 140 ".usage_hints.element_array_stream_read"); 141 142 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000326, 143 "dEQP-GLES3.functional.buffer.map.read", 144 ".usage_hints.element_array_stream_copy"); 145 146 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000327, 147 "dEQP-GLES3.functional.buffer.map.read", 148 ".usage_hints.element_array_static_draw"); 149 150 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000328, 151 "dEQP-GLES3.functional.buffer.map.read", 152 ".usage_hints.element_array_static_read"); 153 154 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000329, 155 "dEQP-GLES3.functional.buffer.map.read", 156 ".usage_hints.element_array_static_copy"); 157 158 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000330, 159 "dEQP-GLES3.functional.buffer.map.read.", 160 "usage_hints.element_array_dynamic_draw"); 161 162 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000331, 163 "dEQP-GLES3.functional.buffer.map.read.", 164 "usage_hints.element_array_dynamic_read"); 165 166 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000332, 167 "dEQP-GLES3.functional.buffer.map.read.", 168 "usage_hints.element_array_dynamic_copy"); 169 170 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000333, 171 "dEQP-GLES3.functional.buffer.map.rea", 172 "d.usage_hints.pixel_pack_stream_draw"); 173 174 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000334, 175 "dEQP-GLES3.functional.buffer.map.rea", 176 "d.usage_hints.pixel_pack_stream_read"); 177 178 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000335, 179 "dEQP-GLES3.functional.buffer.map.rea", 180 "d.usage_hints.pixel_pack_stream_copy"); 181 182 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000336, 183 "dEQP-GLES3.functional.buffer.map.rea", 184 "d.usage_hints.pixel_pack_static_draw"); 185 186 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000337, 187 "dEQP-GLES3.functional.buffer.map.rea", 188 "d.usage_hints.pixel_pack_static_read"); 189 190 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000338, 191 "dEQP-GLES3.functional.buffer.map.rea", 192 "d.usage_hints.pixel_pack_static_copy"); 193 194 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000339, 195 "dEQP-GLES3.functional.buffer.map.rea", 196 "d.usage_hints.pixel_pack_dynamic_draw"); 197 198 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000340, 199 "dEQP-GLES3.functional.buffer.map.rea", 200 "d.usage_hints.pixel_pack_dynamic_read"); 201 202 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000341, 203 "dEQP-GLES3.functional.buffer.map.rea", 204 "d.usage_hints.pixel_pack_dynamic_copy"); 205 206 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000342, 207 "dEQP-GLES3.functional.buffer.map.read", 208 ".usage_hints.pixel_unpack_stream_draw"); 209 210 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000343, 211 "dEQP-GLES3.functional.buffer.map.read", 212 ".usage_hints.pixel_unpack_stream_read"); 213 214 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000344, 215 "dEQP-GLES3.functional.buffer.map.read", 216 ".usage_hints.pixel_unpack_stream_copy"); 217 218 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000345, 219 "dEQP-GLES3.functional.buffer.map.read", 220 ".usage_hints.pixel_unpack_static_draw"); 221 222 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000346, 223 "dEQP-GLES3.functional.buffer.map.read", 224 ".usage_hints.pixel_unpack_static_read"); 225 226 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000347, 227 "dEQP-GLES3.functional.buffer.map.read", 228 ".usage_hints.pixel_unpack_static_copy"); 229 230 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000348, 231 "dEQP-GLES3.functional.buffer.map.read", 232 ".usage_hints.pixel_unpack_dynamic_draw"); 233 234 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000349, 235 "dEQP-GLES3.functional.buffer.map.read", 236 ".usage_hints.pixel_unpack_dynamic_read"); 237 238 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000350, 239 "dEQP-GLES3.functional.buffer.map.read", 240 ".usage_hints.pixel_unpack_dynamic_copy"); 241 242 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000351, 243 "dEQP-GLES3.functional.buffer.map.read.us", 244 "age_hints.transform_feedback_stream_draw"); 245 246 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000352, 247 "dEQP-GLES3.functional.buffer.map.read.us", 248 "age_hints.transform_feedback_stream_read"); 249 250 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000353, 251 "dEQP-GLES3.functional.buffer.map.read.us", 252 "age_hints.transform_feedback_stream_copy"); 253 254 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000354, 255 "dEQP-GLES3.functional.buffer.map.read.us", 256 "age_hints.transform_feedback_static_draw"); 257 258 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000355, 259 "dEQP-GLES3.functional.buffer.map.read.us", 260 "age_hints.transform_feedback_static_read"); 261 262 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000356, 263 "dEQP-GLES3.functional.buffer.map.read.us", 264 "age_hints.transform_feedback_static_copy"); 265 266 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000357, 267 "dEQP-GLES3.functional.buffer.map.read.us", 268 "age_hints.transform_feedback_dynamic_draw"); 269 270 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000358, 271 "dEQP-GLES3.functional.buffer.map.read.us", 272 "age_hints.transform_feedback_dynamic_read"); 273 274 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000359, 275 "dEQP-GLES3.functional.buffer.map.read.us", 276 "age_hints.transform_feedback_dynamic_copy"); 277 278 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000360, 279 "dEQP-GLES3.functional.buffer.map.r", 280 "ead.usage_hints.uniform_stream_draw"); 281 282 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000361, 283 "dEQP-GLES3.functional.buffer.map.r", 284 "ead.usage_hints.uniform_stream_read"); 285 286 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000362, 287 "dEQP-GLES3.functional.buffer.map.r", 288 "ead.usage_hints.uniform_stream_copy"); 289 290 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000363, 291 "dEQP-GLES3.functional.buffer.map.r", 292 "ead.usage_hints.uniform_static_draw"); 293 294 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000364, 295 "dEQP-GLES3.functional.buffer.map.r", 296 "ead.usage_hints.uniform_static_read"); 297 298 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000365, 299 "dEQP-GLES3.functional.buffer.map.r", 300 "ead.usage_hints.uniform_static_copy"); 301 302 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000366, 303 "dEQP-GLES3.functional.buffer.map.re", 304 "ad.usage_hints.uniform_dynamic_draw"); 305 306 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000367, 307 "dEQP-GLES3.functional.buffer.map.re", 308 "ad.usage_hints.uniform_dynamic_read"); 309 310 static SHRINK_HWTEST_F(ActsDeqpgles30001TestSuite, TestCase_000368, 311 "dEQP-GLES3.functional.buffer.map.re", 312 "ad.usage_hints.uniform_dynamic_copy"); 313