/* * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include "../EglBaseFunc.h" #include "../ActsEgl0001TestSuite.h" #include "shrinkdefine.h" using namespace std; using namespace testing::ext; using namespace OHOS; static SHRINK_HWTEST_F(ActsEgl0001TS, TC000953, "dEQP-EGL.functional.image.api.inva", "lid_create_image"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000954, "dEQP-EGL.functional.image.api.crea", "te_image_gles2_tex2d_red"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000955, "dEQP-EGL.functional.image.api.crea", "te_image_gles2_tex2d_rg"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000956, "dEQP-EGL.functional.image.api.cr", "eate_image_gles2_tex2d_luminance"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000957, "dEQP-EGL.functional.image.api.creat", "e_image_gles2_tex2d_luminance_alpha"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000958, "dEQP-EGL.functional.image.api.create_ima", "ge_gles2_tex2d_rgb"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000959, "dEQP-EGL.functional.image.api.create_im", "age_gles2_tex2d_rgba"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000960, "dEQP-EGL.functional.image.api.creat", "e_image_gles2_tex2d_rgba_level0_only"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000961, "dEQP-EGL.functional.image.api.cre", "ate_image_gles2_cubemap_pos_x_rgb"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000962, "dEQP-EGL.functional.image.api.cre", "ate_image_gles2_cubemap_pos_x_rgba"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000963, "dEQP-EGL.functional.image.api.create_im", "age_gles2_cubemap_pos_x_rgba_level0_only"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000964, "dEQP-EGL.functional.image.api.cre", "ate_image_gles2_cubemap_neg_x_rgba"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000965, "dEQP-EGL.functional.image.api.cre", "ate_image_gles2_cubemap_pos_y_rgba"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000966, "dEQP-EGL.functional.image.api.cre", "ate_image_gles2_cubemap_neg_y_rgba"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000967, "dEQP-EGL.functional.image.api.cre", "ate_image_gles2_cubemap_pos_z_rgba"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000968, "dEQP-EGL.functional.image.api.cre", "ate_image_gles2_cubemap_neg_z_rgba"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000969, "dEQP-EGL.functional.image.api.create_ima", "ge_gles2_renderbuffer_depth_component_16"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000970, "dEQP-EGL.functional.image.api.cre", "ate_image_gles2_renderbuffer_rgba4"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000971, "dEQP-EGL.functional.image.api.crea", "te_image_gles2_renderbuffer_rgb5_a1"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000972, "dEQP-EGL.functional.image.api.crea", "te_image_gles2_renderbuffer_rgb565"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000973, "dEQP-EGL.functional.image.api.create_i", "mage_gles2_renderbuffer_stencil_index8"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000974, "dEQP-EGL.functional.image.api.image_targ", "et_gles2_tex2d"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000975, "dEQP-EGL.functional.image.api.", "image_target_gles2_renderbuffer"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000976, "dEQP-EGL.functional.image.create.gles2_tex", "ture_rgb8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000977, "dEQP-EGL.functional.image.creat", "e.gles2_texture_rgb8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000978, "dEQP-EGL.functional.image.crea", "te.gles2_texture_rgb565_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000979, "dEQP-EGL.functional.image.create", ".gles2_texture_rgb565_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000980, "dEQP-EGL.functional.image.crea", "te.gles2_texture_rgba8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000981, "dEQP-EGL.functional.image.create", ".gles2_texture_rgba8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000982, "dEQP-EGL.functional.image.creat", "e.gles2_texture_rgb5_a1_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000983, "dEQP-EGL.functional.image.create.", "gles2_texture_rgb5_a1_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000984, "dEQP-EGL.functional.image.crea", "te.gles2_texture_rgba4_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000985, "dEQP-EGL.functional.image.create", ".gles2_texture_rgba4_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000986, "dEQP-EGL.functional.image.create.gl", "es2_cubemap_positive_x_rgba_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000987, "dEQP-EGL.functional.image.create.gles", "2_cubemap_positive_x_rgba_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000988, "dEQP-EGL.functional.image.create.gl", "es2_cubemap_positive_y_rgba_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000989, "dEQP-EGL.functional.image.create.gles", "2_cubemap_positive_y_rgba_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000990, "dEQP-EGL.functional.image.create.gl", "es2_cubemap_positive_z_rgba_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000991, "dEQP-EGL.functional.image.create.gles", "2_cubemap_positive_z_rgba_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000992, "dEQP-EGL.functional.image.create.gl", "es2_cubemap_negative_x_rgba_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000993, "dEQP-EGL.functional.image.create.gles", "2_cubemap_negative_x_rgba_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000994, "dEQP-EGL.functional.image.create.gl", "es2_cubemap_negative_y_rgba_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000995, "dEQP-EGL.functional.image.create.gles", "2_cubemap_negative_y_rgba_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000996, "dEQP-EGL.functional.image.create.gl", "es2_cubemap_negative_z_rgba_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000997, "dEQP-EGL.functional.image.create.gles", "2_cubemap_negative_z_rgba_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000998, "dEQP-EGL.functional.image.create.g", "les2_cubemap_positive_x_rgb_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC000999, "dEQP-EGL.functional.image.create.gle", "s2_cubemap_positive_x_rgb_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001000, "dEQP-EGL.functional.image.create.g", "les2_cubemap_positive_y_rgb_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001001, "dEQP-EGL.functional.image.create.gle", "s2_cubemap_positive_y_rgb_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001002, "dEQP-EGL.functional.image.create.g", "les2_cubemap_positive_z_rgb_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001003, "dEQP-EGL.functional.image.create.gle", "s2_cubemap_positive_z_rgb_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001004, "dEQP-EGL.functional.image.create.g", "les2_cubemap_negative_x_rgb_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001005, "dEQP-EGL.functional.image.create.gle", "s2_cubemap_negative_x_rgb_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001006, "dEQP-EGL.functional.image.create.g", "les2_cubemap_negative_y_rgb_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001007, "dEQP-EGL.functional.image.create.gle", "s2_cubemap_negative_y_rgb_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001008, "dEQP-EGL.functional.image.create.g", "les2_cubemap_negative_z_rgb_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001009, "dEQP-EGL.functional.image.create.gle", "s2_cubemap_negative_z_rgb_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001010, "dEQP-EGL.functional.image.create", ".gles2_renderbuffer_rgba4_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001011, "dEQP-EGL.functional.image.create.g", "les2_renderbuffer_rgba4_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001012, "dEQP-EGL.functional.image.create.", "gles2_renderbuffer_rgb5_a1_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001013, "dEQP-EGL.functional.image.create.gl", "es2_renderbuffer_rgb5_a1_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001014, "dEQP-EGL.functional.image.create.", "gles2_renderbuffer_rgb565_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001015, "dEQP-EGL.functional.image.create.gl", "es2_renderbuffer_rgb565_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001016, "dEQP-EGL.functional.image.create.gle", "s2_renderbuffer_depth16_depth_buffer"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001017, "dEQP-EGL.functional.image.create.gles", "2_renderbuffer_stencil_stencil_buffer"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001018, "dEQP-EGL.functional.image.modify.tex_", "rgb8_tex_subimage_rgb8"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001019, "dEQP-EGL.functional.image.modify.", "tex_rgb8_renderbuffer_clear_color"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001020, "dEQP-EGL.functional.image.modi", "fy.tex_rgb565_tex_subimage_rgb8"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001021, "dEQP-EGL.functional.image.modif", "y.tex_rgb565_tex_subimage_rgb565"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001022, "dEQP-EGL.functional.image.modify.t", "ex_rgb565_renderbuffer_clear_color"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001023, "dEQP-EGL.functional.image.modi", "fy.tex_rgba8_tex_subimage_rgba8"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001024, "dEQP-EGL.functional.image.modify.", "tex_rgba8_renderbuffer_clear_color"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001025, "dEQP-EGL.functional.image.modify", ".tex_rgb5_a1_tex_subimage_rgb5_a1"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001026, "dEQP-EGL.functional.image.modify.t", "ex_rgb5_a1_renderbuffer_clear_color"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001027, "dEQP-EGL.functional.image.modi", "fy.tex_rgba4_tex_subimage_rgba8"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001028, "dEQP-EGL.functional.image.modi", "fy.tex_rgba4_tex_subimage_rgba4"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001029, "dEQP-EGL.functional.image.modify.re", "nderbuffer_rgba4_tex_subimage_rgba8"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001030, "dEQP-EGL.functional.image.modify.re", "nderbuffer_rgba4_tex_subimage_rgba4"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001031, "dEQP-EGL.functional.image.modify.rend", "erbuffer_rgb5_a1_tex_subimage_rgb5_a1"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001032, "dEQP-EGL.functional.image.modify.render", "buffer_rgb5_a1_renderbuffer_clear_color"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001033, "dEQP-EGL.functional.image.modify.re", "nderbuffer_rgb565_tex_subimage_rgb8"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001034, "dEQP-EGL.functional.image.modify.ren", "derbuffer_rgb565_tex_subimage_rgb565"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001035, "dEQP-EGL.functional.image.modify.rende", "rbuffer_rgb565_renderbuffer_clear_color"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001036, "dEQP-EGL.functional.image.modify.render", "buffer_depth16_renderbuffer_clear_depth"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001037, "dEQP-EGL.functional.image.modify.renderb", "uffer_stencil_renderbuffer_clear_stencil"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001038, "dEQP-EGL.functional.image.render_multi", "ple_contexts.gles2_texture_rgb8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001039, "dEQP-EGL.functional.image.render_multipl", "e_contexts.gles2_texture_rgb8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001040, "dEQP-EGL.functional.image.render_multip", "le_contexts.gles2_texture_rgb565_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001041, "dEQP-EGL.functional.image.render_multiple", "_contexts.gles2_texture_rgb565_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001042, "dEQP-EGL.functional.image.render_multip", "le_contexts.gles2_texture_rgba8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001043, "dEQP-EGL.functional.image.render_multiple", "_contexts.gles2_texture_rgba8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001044, "dEQP-EGL.functional.image.render_multipl", "e_contexts.gles2_texture_rgb5_a1_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001045, "dEQP-EGL.functional.image.render_multiple_", "contexts.gles2_texture_rgb5_a1_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001046, "dEQP-EGL.functional.image.render_multip", "le_contexts.gles2_texture_rgba4_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001047, "dEQP-EGL.functional.image.render_multiple", "_contexts.gles2_texture_rgba4_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001048, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_positive_x_rgba8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001049, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_positive_x_rgba8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001050, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_positive_y_rgba8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001051, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_positive_y_rgba8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001052, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_positive_z_rgba8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001053, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_positive_z_rgba8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001054, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_negative_x_rgba8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001055, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_negative_x_rgba8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001056, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_negative_y_rgba8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001057, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_negative_y_rgba8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001058, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_negative_z_rgba8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001059, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_negative_z_rgba8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001060, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_positive_x_rgb8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001061, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_positive_x_rgb8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001062, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_positive_y_rgb8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001063, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_positive_y_rgb8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001064, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_positive_z_rgb8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001065, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_positive_z_rgb8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001066, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_negative_x_rgb8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001067, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_negative_x_rgb8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001068, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_negative_y_rgb8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001069, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_negative_y_rgb8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001070, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_cubemap_negative_z_rgb8_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001071, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_cubemap_negative_z_rgb8_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001072, "dEQP-EGL.functional.image.render_multiple", "_contexts.gles2_renderbuffer_rgba4_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001073, "dEQP-EGL.functional.image.render_multiple_c", "ontexts.gles2_renderbuffer_rgba4_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001074, "dEQP-EGL.functional.image.render_multiple_", "contexts.gles2_renderbuffer_rgb5_a1_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001075, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_renderbuffer_rgb5_a1_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001076, "dEQP-EGL.functional.image.render_multiple_", "contexts.gles2_renderbuffer_rgb565_texture"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001077, "dEQP-EGL.functional.image.render_multiple_co", "ntexts.gles2_renderbuffer_rgb565_read_pixels"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001078, "dEQP-EGL.functional.image.render_multiple_con", "texts.gles2_renderbuffer_depth16_depth_buffer"); static SHRINK_HWTEST_F(ActsEgl0001TS, TC001079, "dEQP-EGL.functional.image.render_multiple_cont", "exts.gles2_renderbuffer_stencil_stencil_buffer");