Module: Mesa Branch: master Commit: 939b015736d5091faeabde4f5a373e6a1612c5ed URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=939b015736d5091faeabde4f5a373e6a1612c5ed
Author: Samuel Iglesias Gonsálvez <[email protected]> Date: Thu May 4 11:57:36 2017 +0200 anv: vkBindImageMemory() should return VK_ERROR_OUT_OF_{HOST,DEVICE}_MEMORY on failure According to the spec we get VK_ERROR_OUT_OF_HOST_MEMORY or VK_ERROR_OUT_OF_DEVICE_MEMORY on vkBindImageMemory failure. Fixes returned value changed by b546c9d. Fixes: b546c9d ("anv: anv_gem_mmap() returns MAP_FAILED as mapping error") Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]> Cc: "17.0 17.1" <[email protected]> Reviewed-by: Emil Velikov <[email protected]> --- src/intel/vulkan/anv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 36f5d47e1a..55402b2557 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -365,7 +365,7 @@ VkResult anv_BindImageMemory( device->info.has_llc ? 0 : I915_MMAP_WC); if (map == MAP_FAILED) - return vk_error(VK_ERROR_MEMORY_MAP_FAILED); + return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); memset(map, 0, image->aux_surface.isl.size); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
