anv: vkBindImageMemory() should return VK_ERROR_OUT_OF_{HOST,DEVICE}_MEMORY on failure
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 4 May 2017 09:57:36 +0000 (11:57 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 4 May 2017 13:13:08 +0000 (15:13 +0200)
commit939b015736d5091faeabde4f5a373e6a1612c5ed
tree69c3e317746fd58931040615961782121621e537
parent9db9b2e8cd0a0d250c6251a2fef17198616519e7
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 <siglesias@igalia.com>
Cc: "17.0 17.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/intel/vulkan/anv_image.c