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:
Dave Airlie
2017-11-14 13:23:00 +10:00
parent 5da2b26dcb
commit 00bf875d55
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -1144,7 +1144,7 @@ unsupported:
.maxResourceSize = 0,
};
return vk_error(VK_ERROR_FORMAT_NOT_SUPPORTED);
return VK_ERROR_FORMAT_NOT_SUPPORTED;
}
VkResult radv_GetPhysicalDeviceImageFormatProperties(