summaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_device.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2018-11-06 23:52:57 -0700
committerChia-I Wu <[email protected]>2019-03-11 10:01:33 -0700
commitee835c779000134f62f2d01eba4693b6324c09e7 (patch)
tree88383aa629c198ee43dfa2b0a59c9f5a4ae9469e /src/freedreno/vulkan/tu_device.c
parentdaffb01704f5d570893195f9e71826c93d1e8961 (diff)
turnip: Fix result of vkEnumerate*LayerProperties
The functions must not return VK_ERROR_LAYER_NOT_PRESENT. The spec reserves that error for vkEnumerate*ExtensionProperties.
Diffstat (limited to 'src/freedreno/vulkan/tu_device.c')
-rw-r--r--src/freedreno/vulkan/tu_device.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index ac6d575c726..b3ea522bfdf 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -1088,13 +1088,8 @@ VkResult
tu_EnumerateInstanceLayerProperties(uint32_t *pPropertyCount,
VkLayerProperties *pProperties)
{
- if (pProperties == NULL) {
- *pPropertyCount = 0;
- return VK_SUCCESS;
- }
-
- /* None supported at this time */
- return vk_error(NULL, VK_ERROR_LAYER_NOT_PRESENT);
+ *pPropertyCount = 0;
+ return VK_SUCCESS;
}
VkResult
@@ -1102,13 +1097,8 @@ tu_EnumerateDeviceLayerProperties(VkPhysicalDevice physicalDevice,
uint32_t *pPropertyCount,
VkLayerProperties *pProperties)
{
- if (pProperties == NULL) {
- *pPropertyCount = 0;
- return VK_SUCCESS;
- }
-
- /* None supported at this time */
- return vk_error(NULL, VK_ERROR_LAYER_NOT_PRESENT);
+ *pPropertyCount = 0;
+ return VK_SUCCESS;
}
void