mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
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:
parent
5da2b26dcb
commit
00bf875d55
2 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue