diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 90799f2bc69..2e7f81d6dc5 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1405,7 +1405,10 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr : device->ws->copy_sync_payloads; /* VM_ALWAYS_VALID must be supported. */ - assert(pdev->info.has_vm_always_valid); + if (!pdev->info.has_vm_always_valid) { + result = VK_ERROR_INITIALIZATION_FAILED; + goto fail; + } device->overallocation_disallowed = overallocation_disallowed; mtx_init(&device->overallocation_mutex, mtx_plain);