summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_device.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-11-14 13:23:00 +1000
committerDave Airlie <[email protected]>2017-11-16 06:12:42 +1000
commit00bf875d553a6c9ab1fb76bb6c674df6504ae7e8 (patch)
treebacc628a51e07e739ecf7172af911ac83ce19a4d /src/amd/vulkan/radv_device.c
parent5da2b26dcb8ea14183814711e78648c4efc23ca3 (diff)
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 <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r--src/amd/vulkan/radv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 6666b62aa2c..722c768aa06 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -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);