diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2022-12-28 10:52:30 +0200 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2022-12-28 11:42:34 +0200 |
commit | e300648a805d62101de341232d99bfec1cce78c5 (patch) | |
tree | 87a8fdce74c51801b692d685466fba9907014470 | |
parent | dcf69a6061ab94a0d49ce2dbc0433c1b87e5278e (diff) |
ext_external_objects: change image display test to only use color
This test should not require usage of depth attachment.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/752>
-rw-r--r-- | tests/spec/ext_external_objects/vk_image_display.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/tests/spec/ext_external_objects/vk_image_display.c b/tests/spec/ext_external_objects/vk_image_display.c index 03543109b..d61c7b177 100644 --- a/tests/spec/ext_external_objects/vk_image_display.c +++ b/tests/spec/ext_external_objects/vk_image_display.c @@ -88,7 +88,6 @@ gl_cleanup(void); static struct vk_ctx vk_core; static struct vk_image_att vk_color_att; -static struct vk_image_att vk_depth_att; static struct vk_renderer vk_rnd; static GLenum gl_target = GL_TEXTURE_2D; @@ -171,7 +170,7 @@ piglit_display(void) glFlush(); } - struct vk_image_att images[] = { vk_color_att, vk_depth_att }; + struct vk_image_att images[] = { vk_color_att }; vk_draw(&vk_core, 0, &vk_rnd, vk_fb_color, 4, &vk_sem, vk_sem_has_wait, vk_sem_has_signal, images, ARRAY_SIZE(images), 0, 0, w, h); @@ -256,27 +255,6 @@ vk_init(uint32_t w, return false; } - /* depth image */ - if (!vk_fill_ext_image_props(&vk_core, - w, h, d, - num_samples, - num_levels, - num_layers, - depth_format, - depth_tiling, - depth_in_layout, - depth_end_layout, - false, - &vk_depth_att.props)) { - fprintf(stderr, "Unsupported depth image properties.\n"); - return false; - } - - if (!vk_create_ext_image(&vk_core, &vk_depth_att.props, &vk_depth_att.obj)) { - fprintf(stderr, "Failed to create depth image.\n"); - goto fail; - } - /* load shaders */ if (!(vs_src = load_shader(VK_BANDS_VERT, &vs_sz))) goto fail; @@ -287,7 +265,7 @@ vk_init(uint32_t w, /* create Vulkan renderer */ if (!vk_create_renderer(&vk_core, vs_src, vs_sz, fs_src, fs_sz, false, false, - &vk_color_att, &vk_depth_att, 0, &vk_rnd)) { + &vk_color_att, NULL, 0, &vk_rnd)) { fprintf(stderr, "Failed to create Vulkan renderer.\n"); goto fail; } @@ -313,7 +291,6 @@ static void vk_cleanup(void) { vk_destroy_ext_image(&vk_core, &vk_color_att.obj); - vk_destroy_ext_image(&vk_core, &vk_depth_att.obj); vk_destroy_renderer(&vk_core, &vk_rnd); vk_destroy_semaphores(&vk_core, &vk_sem); |