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 "../EglBaseFunc.h" 19 #include "../ActsEgl0001TestSuite.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(ActsEgl0001TS, TC003855, "dEQP-EGL.performance.gles2_shared_render.no_", 27 "shared_context.1_thread_1_context_small_call"); 28 29 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003856, "dEQP-EGL.performance.gles2_shared_render.no", 30 "_shared_context.1_thread_1_context_big_call"); 31 32 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003857, "dEQP-EGL.performance.gles2_shared_render.no_", 33 "shared_context.1_thread_4_contexts_small_call"); 34 35 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003858, "dEQP-EGL.performance.gles2_shared_render.no", 36 "_shared_context.1_thread_4_contexts_big_call"); 37 38 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003859, "dEQP-EGL.performance.gles2_shared_render.no_s", 39 "hared_context.2_threads_2_contexts_small_call"); 40 41 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003860, "dEQP-EGL.performance.gles2_shared_render.no_", 42 "shared_context.2_threads_2_contexts_big_call"); 43 44 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003861, "dEQP-EGL.performance.gles2_shared_render.no_", 45 "shared_context.4_threads_1_context_small_call"); 46 47 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003862, "dEQP-EGL.performance.gles2_shared_render.no", 48 "_shared_context.4_threads_1_context_big_call"); 49 50 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003863, "dEQP-EGL.performance.gles2_shared_render.no_", 51 "shared_resource.1_thread_1_context_small_call"); 52 53 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003864, "dEQP-EGL.performance.gles2_shared_render.no", 54 "_shared_resource.1_thread_1_context_big_call"); 55 56 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003865, "dEQP-EGL.performance.gles2_shared_render.no_s", 57 "hared_resource.1_thread_4_contexts_small_call"); 58 59 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003866, "dEQP-EGL.performance.gles2_shared_render.no_", 60 "shared_resource.1_thread_4_contexts_big_call"); 61 62 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003867, "dEQP-EGL.performance.gles2_shared_render.no_s", 63 "hared_resource.2_threads_2_contexts_small_call"); 64 65 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003868, "dEQP-EGL.performance.gles2_shared_render.no_", 66 "shared_resource.2_threads_2_contexts_big_call"); 67 68 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003869, "dEQP-EGL.performance.gles2_shared_render.no_s", 69 "hared_resource.4_threads_1_context_small_call"); 70 71 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003870, "dEQP-EGL.performance.gles2_shared_render.no_", 72 "shared_resource.4_threads_1_context_big_call"); 73 74 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003871, "dEQP-EGL.performance.gles2_shared_render.shar", 75 "ed_coord_buffer.1_thread_1_context_small_call"); 76 77 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003872, "dEQP-EGL.performance.gles2_shared_render.sha", 78 "red_coord_buffer.1_thread_1_context_big_call"); 79 80 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003873, "dEQP-EGL.performance.gles2_shared_render.shar", 81 "ed_coord_buffer.1_thread_4_contexts_small_call"); 82 83 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003874, "dEQP-EGL.performance.gles2_shared_render.sha", 84 "red_coord_buffer.1_thread_4_contexts_big_call"); 85 86 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003875, "dEQP-EGL.performance.gles2_shared_render.share", 87 "d_coord_buffer.2_threads_2_contexts_small_call"); 88 89 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003876, "dEQP-EGL.performance.gles2_shared_render.shar", 90 "ed_coord_buffer.2_threads_2_contexts_big_call"); 91 92 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003877, "dEQP-EGL.performance.gles2_shared_render.shar", 93 "ed_coord_buffer.4_threads_1_context_small_call"); 94 95 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003878, "dEQP-EGL.performance.gles2_shared_render.sha", 96 "red_coord_buffer.4_threads_1_context_big_call"); 97 98 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003879, "dEQP-EGL.performance.gles2_shared_render.shar", 99 "ed_index_buffer.1_thread_1_context_small_call"); 100 101 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003880, "dEQP-EGL.performance.gles2_shared_render.sha", 102 "red_index_buffer.1_thread_1_context_big_call"); 103 104 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003881, "dEQP-EGL.performance.gles2_shared_render.shar", 105 "ed_index_buffer.1_thread_4_contexts_small_call"); 106 107 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003882, "dEQP-EGL.performance.gles2_shared_render.sha", 108 "red_index_buffer.1_thread_4_contexts_big_call"); 109 110 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003883, "dEQP-EGL.performance.gles2_shared_render.share", 111 "d_index_buffer.2_threads_2_contexts_small_call"); 112 113 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003884, "dEQP-EGL.performance.gles2_shared_render.shar", 114 "ed_index_buffer.2_threads_2_contexts_big_call"); 115 116 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003885, "dEQP-EGL.performance.gles2_shared_render.shar", 117 "ed_index_buffer.4_threads_1_context_small_call"); 118 119 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003886, "dEQP-EGL.performance.gles2_shared_render.sha", 120 "red_index_buffer.4_threads_1_context_big_call"); 121 122 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003887, "dEQP-EGL.performance.gles2_shared_render.s", 123 "hared_texture.1_thread_1_context_small_call"); 124 125 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003888, "dEQP-EGL.performance.gles2_shared_render.", 126 "shared_texture.1_thread_1_context_big_call"); 127 128 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003889, "dEQP-EGL.performance.gles2_shared_render.sh", 129 "ared_texture.1_thread_4_contexts_small_call"); 130 131 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003890, "dEQP-EGL.performance.gles2_shared_render.s", 132 "hared_texture.1_thread_4_contexts_big_call"); 133 134 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003891, "dEQP-EGL.performance.gles2_shared_render.sh", 135 "ared_texture.2_threads_2_contexts_small_call"); 136 137 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003892, "dEQP-EGL.performance.gles2_shared_render.s", 138 "hared_texture.2_threads_2_contexts_big_call"); 139 140 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003893, "dEQP-EGL.performance.gles2_shared_render.sh", 141 "ared_texture.4_threads_1_context_small_call"); 142 143 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003894, "dEQP-EGL.performance.gles2_shared_render.s", 144 "hared_texture.4_threads_1_context_big_call"); 145 146 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003895, "dEQP-EGL.performance.gles2_shared_render.s", 147 "hared_program.1_thread_1_context_small_call"); 148 149 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003896, "dEQP-EGL.performance.gles2_shared_render.", 150 "shared_program.1_thread_1_context_big_call"); 151 152 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003897, "dEQP-EGL.performance.gles2_shared_render.sh", 153 "ared_program.1_thread_4_contexts_small_call"); 154 155 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003898, "dEQP-EGL.performance.gles2_shared_render.s", 156 "hared_program.1_thread_4_contexts_big_call"); 157 158 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003899, "dEQP-EGL.performance.gles2_shared_render.sh", 159 "ared_program.2_threads_2_contexts_small_call"); 160 161 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003900, "dEQP-EGL.performance.gles2_shared_render.s", 162 "hared_program.2_threads_2_contexts_big_call"); 163 164 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003901, "dEQP-EGL.performance.gles2_shared_render.sh", 165 "ared_program.4_threads_1_context_small_call"); 166 167 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003902, "dEQP-EGL.performance.gles2_shared_render.s", 168 "hared_program.4_threads_1_context_big_call"); 169 170 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003903, "dEQP-EGL.performance.gles2_shared_render", 171 ".shared_all.1_thread_1_context_small_call"); 172 173 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003904, "dEQP-EGL.performance.gles2_shared_rende", 174 "r.shared_all.1_thread_1_context_big_call"); 175 176 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003905, "dEQP-EGL.performance.gles2_shared_render.", 177 "shared_all.1_thread_4_contexts_small_call"); 178 179 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003906, "dEQP-EGL.performance.gles2_shared_render", 180 ".shared_all.1_thread_4_contexts_big_call"); 181 182 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003907, "dEQP-EGL.performance.gles2_shared_render.", 183 "shared_all.2_threads_2_contexts_small_call"); 184 185 static SHRINK_HWTEST_F(ActsEgl0001TS, TC003908, "dEQP-EGL.performance.gles2_shared_render", 186 ".shared_all.2_threads_2_contexts_big_call"); 187