mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
radv: return VK_ERROR_INITIALIZATION_FAILED if VM_ALWAYS_VALID isn't supported
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:
parent
16153e3f69
commit
cdac2d65b3
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue