mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
c/util: Remove comp_swapchain_image samplers
No longer used, they where all the same.
This commit is contained in:
parent
1644812dc5
commit
27ba15cb24
|
@ -141,11 +141,6 @@ do_post_create_vulkan_setup(struct vk_bundle *vk,
|
||||||
sc->images[i].views.no_alpha = U_TYPED_ARRAY_CALLOC(VkImageView, info->array_size);
|
sc->images[i].views.no_alpha = U_TYPED_ARRAY_CALLOC(VkImageView, info->array_size);
|
||||||
sc->images[i].array_size = info->array_size;
|
sc->images[i].array_size = info->array_size;
|
||||||
|
|
||||||
vk_create_sampler(vk, VK_SAMPLER_ADDRESS_MODE_REPEAT, &sc->images[i].repeat_sampler);
|
|
||||||
|
|
||||||
vk_create_sampler(vk, VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, &sc->images[i].sampler);
|
|
||||||
|
|
||||||
|
|
||||||
for (uint32_t layer = 0; layer < info->array_size; ++layer) {
|
for (uint32_t layer = 0; layer < info->array_size; ++layer) {
|
||||||
VkImageSubresourceRange subresource_range = {
|
VkImageSubresourceRange subresource_range = {
|
||||||
.aspectMask = image_view_aspect,
|
.aspectMask = image_view_aspect,
|
||||||
|
@ -276,9 +271,6 @@ image_cleanup(struct vk_bundle *vk, struct comp_swapchain_image *image)
|
||||||
|
|
||||||
clean_image_views(vk, image->array_size, &image->views.alpha);
|
clean_image_views(vk, image->array_size, &image->views.alpha);
|
||||||
clean_image_views(vk, image->array_size, &image->views.no_alpha);
|
clean_image_views(vk, image->array_size, &image->views.no_alpha);
|
||||||
|
|
||||||
D(Sampler, image->sampler);
|
|
||||||
D(Sampler, image->repeat_sampler);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
@ -56,9 +56,6 @@ struct comp_swapchain_shared
|
||||||
*/
|
*/
|
||||||
struct comp_swapchain_image
|
struct comp_swapchain_image
|
||||||
{
|
{
|
||||||
//! Sampler used by the renderer and distortion code.
|
|
||||||
VkSampler sampler;
|
|
||||||
VkSampler repeat_sampler;
|
|
||||||
//! Views used by the renderer and distortion code, for each array layer.
|
//! Views used by the renderer and distortion code, for each array layer.
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue