projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
anv: Drop an assert
[mesa.git]
/
src
/
intel
/
vulkan
/
anv_device.c
diff --git
a/src/intel/vulkan/anv_device.c
b/src/intel/vulkan/anv_device.c
index 1462b76157600e899229b7f0e72b9f46b828ce35..7d5b3a2a839ed25d4867c741b89930219214f5d7 100644
(file)
--- a/
src/intel/vulkan/anv_device.c
+++ b/
src/intel/vulkan/anv_device.c
@@
-2204,6
+2204,11
@@
PFN_vkVoidFunction anv_GetInstanceProcAddr(
LOOKUP_ANV_ENTRYPOINT(EnumerateInstanceVersion);
LOOKUP_ANV_ENTRYPOINT(CreateInstance);
LOOKUP_ANV_ENTRYPOINT(EnumerateInstanceVersion);
LOOKUP_ANV_ENTRYPOINT(CreateInstance);
+ /* GetInstanceProcAddr() can also be called with a NULL instance.
+ * See https://gitlab.khronos.org/vulkan/vulkan/issues/2057
+ */
+ LOOKUP_ANV_ENTRYPOINT(GetInstanceProcAddr);
+
#undef LOOKUP_ANV_ENTRYPOINT
if (instance == NULL)
#undef LOOKUP_ANV_ENTRYPOINT
if (instance == NULL)
@@
-4294,7
+4299,6
@@
VkResult anv_CreateFramebuffer(
}
framebuffer->attachment_count = pCreateInfo->attachmentCount;
} else {
}
framebuffer->attachment_count = pCreateInfo->attachmentCount;
} else {
- assert(device->enabled_extensions.KHR_imageless_framebuffer);
framebuffer = vk_alloc2(&device->alloc, pAllocator, size, 8,
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
if (framebuffer == NULL)
framebuffer = vk_alloc2(&device->alloc, pAllocator, size, 8,
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
if (framebuffer == NULL)