anv: fix corner case of mutable descriptor pool creation
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 63e91148b7 ("anv: Enable VK_VALVE_mutable_descriptor_type")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10065
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25958>
This commit is contained in:
committed by
Marge Bot
parent
fac60c140b
commit
cdca0b2ce4
@@ -280,7 +280,9 @@ anv_descriptor_size_for_mutable_type(const struct anv_physical_device *device,
|
||||
{
|
||||
unsigned size = 0;
|
||||
|
||||
if (!mutable_info || mutable_info->mutableDescriptorTypeListCount == 0) {
|
||||
if (!mutable_info ||
|
||||
mutable_info->mutableDescriptorTypeListCount == 0 ||
|
||||
binding >= mutable_info->mutableDescriptorTypeListCount) {
|
||||
for(VkDescriptorType i = 0; i <= VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT; i++) {
|
||||
|
||||
if (i == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC ||
|
||||
|
||||
Reference in New Issue
Block a user