Commit ea87b48
committed
gfx/common/vulkan: force MVK_CONFIG_USE_MTLHEAP=0 on Apple to avoid placement-heap crash
MoltenVK 1.3.0 flipped MVK_CONFIG_USE_MTLHEAP to active by default for
non-AMD GPUs, routing VkDeviceMemory through a placement MTLHeap.
Placement heaps need macOS 13+ AND supportsPlacementHeaps; older Intel
Macs satisfy neither and abort at swapchain-image allocation:
-[MTLHeapDescriptorInternal validateWithDevice:]:335:
failed assertion `Placement heap type is not supported.'
Force the path off in vulkan_context_init() before the loader is
opened, while still respecting an explicit user override. "0" is
boolean-false on 1.2.x and MVK_CONFIG_USE_MTLHEAP_NEVER on 1.3.x, so
the fix is version-agnostic.
Fixes #18985.1 parent 0c0eb03 commit ea87b48
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2498 | 2498 | | |
2499 | 2499 | | |
2500 | 2500 | | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
2501 | 2515 | | |
2502 | 2516 | | |
2503 | 2517 | | |
| |||
0 commit comments