This reverts two of the vk_error changes:
reporting unsupported format is common,
and testing non-amdgpu drivers and ignoring them is also common.
Fixes: cd64a4f70 (radv: use vk_error() everywhere an error is returned)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
if (strcmp(version->name, "amdgpu")) {
drmFreeVersion(version);
close(fd);
- return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER);
+ return VK_ERROR_INCOMPATIBLE_DRIVER;
}
drmFreeVersion(version);
.maxResourceSize = 0,
};
- return vk_error(VK_ERROR_FORMAT_NOT_SUPPORTED);
+ return VK_ERROR_FORMAT_NOT_SUPPORTED;
}
VkResult radv_GetPhysicalDeviceImageFormatProperties(