radv: it isn't an error to not support a format or driver
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>
This commit is contained in:
@@ -196,7 +196,7 @@ radv_physical_device_init(struct radv_physical_device *device,
|
||||
if (strcmp(version->name, "amdgpu")) {
|
||||
drmFreeVersion(version);
|
||||
close(fd);
|
||||
return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER);
|
||||
return VK_ERROR_INCOMPATIBLE_DRIVER;
|
||||
}
|
||||
drmFreeVersion(version);
|
||||
|
||||
|
@@ -1144,7 +1144,7 @@ unsupported:
|
||||
.maxResourceSize = 0,
|
||||
};
|
||||
|
||||
return vk_error(VK_ERROR_FORMAT_NOT_SUPPORTED);
|
||||
return VK_ERROR_FORMAT_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
VkResult radv_GetPhysicalDeviceImageFormatProperties(
|
||||
|
Reference in New Issue
Block a user