mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
c/main: Remove layer renderer framebuffer sampler
This commit is contained in:
parent
82453bab57
commit
1644812dc5
|
@ -418,8 +418,6 @@ _init_frame_buffer(struct comp_layer_renderer *self, VkFormat format, VkRenderPa
|
||||||
&self->framebuffers[eye].image);
|
&self->framebuffers[eye].image);
|
||||||
vk_check_error("vk_create_image_simple", res, false);
|
vk_check_error("vk_create_image_simple", res, false);
|
||||||
|
|
||||||
vk_create_sampler(vk, VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, &self->framebuffers[eye].sampler);
|
|
||||||
|
|
||||||
VkImageSubresourceRange subresource_range = {
|
VkImageSubresourceRange subresource_range = {
|
||||||
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
|
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
|
||||||
.baseMipLevel = 0,
|
.baseMipLevel = 0,
|
||||||
|
@ -672,7 +670,6 @@ _destroy_framebuffer(struct comp_layer_renderer *self, uint32_t i)
|
||||||
vk->vkDestroyImage(vk->device, self->framebuffers[i].image, NULL);
|
vk->vkDestroyImage(vk->device, self->framebuffers[i].image, NULL);
|
||||||
vk->vkFreeMemory(vk->device, self->framebuffers[i].memory, NULL);
|
vk->vkFreeMemory(vk->device, self->framebuffers[i].memory, NULL);
|
||||||
vk->vkDestroyFramebuffer(vk->device, self->framebuffers[i].handle, NULL);
|
vk->vkDestroyFramebuffer(vk->device, self->framebuffers[i].handle, NULL);
|
||||||
vk->vkDestroySampler(vk->device, self->framebuffers[i].sampler, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -25,7 +25,6 @@ struct comp_layer_renderer
|
||||||
VkImage image;
|
VkImage image;
|
||||||
VkDeviceMemory memory;
|
VkDeviceMemory memory;
|
||||||
VkImageView view;
|
VkImageView view;
|
||||||
VkSampler sampler;
|
|
||||||
VkFramebuffer handle;
|
VkFramebuffer handle;
|
||||||
} framebuffers[2];
|
} framebuffers[2];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue