summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_formats.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-04-14 17:14:14 -0700
committerNanley Chery <[email protected]>2016-04-27 11:28:30 -0700
commit28d0bc72fbce26fd986b0e3f3a1f346a9d6eba00 (patch)
tree05ef2381b768b82002b51b88c80368453b9c9ac3 /src/intel/vulkan/anv_formats.c
parent5f7e8eac426a53df25721f07c11f109ca4a56138 (diff)
anv/formats: Return proper error code for unsupported formats
Fixes some failures in dEQP-VK.api.info.image_format_properties.* and enables the test group to execute without assert failing. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94896 Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_formats.c')
-rw-r--r--src/intel/vulkan/anv_formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index 750af793bdf..395f91783d7 100644
--- a/src/intel/vulkan/anv_formats.c
+++ b/src/intel/vulkan/anv_formats.c
@@ -583,7 +583,7 @@ unsupported:
.maxResourceSize = 0,
};
- return VK_SUCCESS;
+ return VK_ERROR_FORMAT_NOT_SUPPORTED;
}
void anv_GetPhysicalDeviceSparseImageFormatProperties(