Mesa (master): anv/formats: Return proper error code for unsupported formats

Nanley Chery nchery at kemper.freedesktop.org
Wed Apr 27 18:28:46 UTC 2016


Module: Mesa
Branch: master
Commit: 28d0bc72fbce26fd986b0e3f3a1f346a9d6eba00
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=28d0bc72fbce26fd986b0e3f3a1f346a9d6eba00

Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Thu Apr 14 17:14:14 2016 -0700

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 <nanley.g.chery at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/intel/vulkan/anv_formats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index 750af79..395f917 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(




More information about the mesa-commit mailing list