mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
c/render: Remove compute default_sampler
This commit is contained in:
parent
27ba15cb24
commit
647fd366c5
|
@ -329,9 +329,6 @@ struct render_resources
|
||||||
//! Uniform data binding.
|
//! Uniform data binding.
|
||||||
uint32_t ubo_binding;
|
uint32_t ubo_binding;
|
||||||
|
|
||||||
//! Default sampler for null images.
|
|
||||||
VkSampler default_sampler;
|
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
//! Descriptor set layout for compute.
|
//! Descriptor set layout for compute.
|
||||||
|
|
|
@ -737,12 +737,6 @@ render_resources_init(struct render_resources *r,
|
||||||
VkMemoryPropertyFlags memory_property_flags =
|
VkMemoryPropertyFlags memory_property_flags =
|
||||||
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
|
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 = {
|
struct vk_descriptor_pool_info compute_pool_info = {
|
||||||
.uniform_per_descriptor_count = 1,
|
.uniform_per_descriptor_count = 1,
|
||||||
// layer images
|
// layer images
|
||||||
|
@ -1018,8 +1012,6 @@ render_resources_close(struct render_resources *r)
|
||||||
|
|
||||||
D(Pipeline, r->compute.clear.pipeline);
|
D(Pipeline, r->compute.clear.pipeline);
|
||||||
|
|
||||||
D(Sampler, r->compute.default_sampler);
|
|
||||||
|
|
||||||
render_distortion_images_close(r);
|
render_distortion_images_close(r);
|
||||||
render_buffer_close(vk, &r->compute.clear.ubo);
|
render_buffer_close(vk, &r->compute.clear.ubo);
|
||||||
render_buffer_close(vk, &r->compute.layer.ubo);
|
render_buffer_close(vk, &r->compute.layer.ubo);
|
||||||
|
|
Loading…
Reference in a new issue