radv: return VK_ERROR_INITIALIZATION_FAILED if VM_ALWAYS_VALID isn't supported
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Better than asserting.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41960>
This commit is contained in:
Samuel Pitoiset 2026-06-02 15:31:30 +02:00 committed by Marge Bot
parent 16153e3f69
commit cdac2d65b3

View file

@ -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);