From 647fd366c5ea727377e8cb264087ab828544e135 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 18 May 2023 19:28:07 +0100 Subject: [PATCH] c/render: Remove compute default_sampler --- src/xrt/compositor/render/render_interface.h | 3 --- src/xrt/compositor/render/render_resources.c | 8 -------- 2 files changed, 11 deletions(-) diff --git a/src/xrt/compositor/render/render_interface.h b/src/xrt/compositor/render/render_interface.h index 62762bf26..69e1e9865 100644 --- a/src/xrt/compositor/render/render_interface.h +++ b/src/xrt/compositor/render/render_interface.h @@ -329,9 +329,6 @@ struct render_resources //! Uniform data binding. uint32_t ubo_binding; - //! Default sampler for null images. - VkSampler default_sampler; - struct { //! Descriptor set layout for compute. diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c index ed7d41554..13c1cd6f7 100644 --- a/src/xrt/compositor/render/render_resources.c +++ b/src/xrt/compositor/render/render_resources.c @@ -737,12 +737,6 @@ render_resources_init(struct render_resources *r, VkMemoryPropertyFlags memory_property_flags = VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; - C(vk_create_sampler( // - vk, // vk_bundle - VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, // clamp_mode - &r->compute.default_sampler)); // out_sampler - - struct vk_descriptor_pool_info compute_pool_info = { .uniform_per_descriptor_count = 1, // layer images @@ -1018,8 +1012,6 @@ render_resources_close(struct render_resources *r) D(Pipeline, r->compute.clear.pipeline); - D(Sampler, r->compute.default_sampler); - render_distortion_images_close(r); render_buffer_close(vk, &r->compute.clear.ubo); render_buffer_close(vk, &r->compute.layer.ubo);