panvk: pass flags to panvk_sampler_fill_desc

This will be useful in the next commit.

Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: John Anthony <john.anthony@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35886>
This commit is contained in:
Erik Faye-Lund 2025-07-02 14:37:41 +02:00 committed by Marge Bot
parent c30de16970
commit 618c137b29

View file

@ -103,7 +103,8 @@ panvk_sampler_fill_desc(const struct VkSamplerCreateInfo *info,
struct mali_sampler_packed *desc,
VkClearColorValue border_color,
VkFilter min_filter, VkFilter mag_filter,
VkSamplerReductionMode reduction_mode)
VkSamplerReductionMode reduction_mode,
VkSamplerCreateFlags flags)
{
pan_pack(desc, SAMPLER, cfg) {
cfg.magnify_nearest = mag_filter == VK_FILTER_NEAREST;
@ -200,7 +201,7 @@ panvk_per_arch(CreateSampler)(VkDevice _device,
sampler->desc_count = 1;
panvk_sampler_fill_desc(pCreateInfo, &sampler->descs[0], border_color,
pCreateInfo->minFilter, pCreateInfo->magFilter,
sampler->vk.reduction_mode);
sampler->vk.reduction_mode, pCreateInfo->flags);
/* In order to support CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT,
* we need multiple sampler planes: at minimum we will need one for
@ -214,7 +215,8 @@ panvk_per_arch(CreateSampler)(VkDevice _device,
sampler->desc_count = 2;
panvk_sampler_fill_desc(pCreateInfo, &sampler->descs[1],
border_color, chroma_filter, chroma_filter,
sampler->vk.reduction_mode);
sampler->vk.reduction_mode,
pCreateInfo->flags);
}
}