radv/amdgpu: allow RADV_PERFTEST=localbos with virtio

VM_ALWAYS_VALID should be supported now.

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 14:42:40 +02:00 committed by Marge Bot
parent 879dd9ca8c
commit 52176d43c0

View file

@ -264,13 +264,6 @@ radv_amdgpu_winsys_create(int fd, uint64_t debug_flags, uint64_t perftest_flags,
return VK_ERROR_INITIALIZATION_FAILED;
}
if (is_virtio && (perftest_flags & RADV_PERFTEST_LOCAL_BOS)) {
/* virtio doesn't support VM_ALWAYS_VALID, so disable options that requires it. */
fprintf(stderr, "RADV_PERFTEST=localbos is not supported with virtio.\n");
result = VK_ERROR_INITIALIZATION_FAILED;
goto fail;
}
ws = calloc(1, sizeof(struct radv_amdgpu_winsys));
if (!ws) {
result = VK_ERROR_OUT_OF_HOST_MEMORY;