mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
dzn: Check that no export is requested in the memory allocation path
We don't support exporting memory objects yet, so let's make sure the user doesn't request that. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>
This commit is contained in:
parent
8c23d9db0b
commit
96a7f81072
1 changed files with 13 additions and 6 deletions
|
|
@ -2142,13 +2142,20 @@ dzn_device_memory_create(struct dzn_device *device,
|
|||
|
||||
mem->size = pAllocateInfo->allocationSize;
|
||||
|
||||
#if 0
|
||||
const VkExportMemoryAllocateInfo *export_info = NULL;
|
||||
VkMemoryAllocateFlags vk_flags = 0;
|
||||
#endif
|
||||
|
||||
vk_foreach_struct_const(ext, pAllocateInfo->pNext) {
|
||||
dzn_debug_ignored_stype(ext->sType);
|
||||
switch (ext->sType) {
|
||||
case VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO: {
|
||||
const VkExportMemoryAllocateInfo *exp =
|
||||
(const VkExportMemoryAllocateInfo *)ext;
|
||||
|
||||
// TODO: support export
|
||||
assert(exp->handleTypes == 0);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
dzn_debug_ignored_stype(ext->sType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const VkMemoryType *mem_type =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue