panvk: remove unused is_sampler and is_texture

There is no user.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31773>
This commit is contained in:
Chia-I Wu 2024-10-21 13:10:21 -07:00 committed by Marge Bot
parent ceefcbecd5
commit 382e078659

View file

@ -42,32 +42,6 @@ binding_has_immutable_samplers(const VkDescriptorSetLayoutBinding *binding)
}
}
static bool
is_sampler(const VkDescriptorSetLayoutBinding *binding)
{
switch (binding->descriptorType) {
case VK_DESCRIPTOR_TYPE_SAMPLER:
case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER:
return true;
default:
return false;
}
}
static bool
is_texture(const VkDescriptorSetLayoutBinding *binding)
{
switch (binding->descriptorType) {
case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER:
case VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE:
case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE:
case VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT:
return true;
default:
return false;
}
}
VkResult
panvk_per_arch(CreateDescriptorSetLayout)(
VkDevice _device, const VkDescriptorSetLayoutCreateInfo *pCreateInfo,