anv/formats: Return proper error code for unsupported formats
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 15 Apr 2016 00:14:14 +0000 (17:14 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Wed, 27 Apr 2016 18:28:30 +0000 (11:28 -0700)
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@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_formats.c

index 750af793bdf79a57eedd39ecf5872369a6d4b301..395f91783d71d963f579a9670eea2184f79c3e28 100644 (file)
@@ -583,7 +583,7 @@ unsupported:
       .maxResourceSize = 0,
    };
 
-   return VK_SUCCESS;
+   return VK_ERROR_FORMAT_NOT_SUPPORTED;
 }
 
 void anv_GetPhysicalDeviceSparseImageFormatProperties(