radv: Take image alignment into account when allocating MUTABLE pool.
Allocating a descriptor set is aligned to 32 bytes, so just like the
other buffer types, bump the descriptor size to 32 bytes when allocating
MUTABLE descriptor types from a pool.
Fixes: 86644b84b9 ("radv: Implement VK_VALVE_mutable_descriptor_type.")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10132>
This commit is contained in:
committed by
Marge Bot
parent
f945cca983
commit
b60bc59180
@@ -756,6 +756,8 @@ radv_CreateDescriptorPool(VkDevice _device, const VkDescriptorPoolCreateInfo *pC
|
||||
if (radv_mutable_descriptor_type_size_alignment(
|
||||
&mutable_info->pMutableDescriptorTypeLists[i], &mutable_size,
|
||||
&mutable_alignment)) {
|
||||
/* 32 as we may need to align for images */
|
||||
mutable_size = align(mutable_size, 32);
|
||||
bo_size += mutable_size * pCreateInfo->pPoolSizes[i].descriptorCount;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user