anv: anv_gem_mmap() returns MAP_FAILED as mapping error
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 3 May 2017 06:02:21 +0000 (08:02 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 4 May 2017 06:56:36 +0000 (08:56 +0200)
commitb546c9d318731b988aa3d8c4e4735cdbb596cfbf
treed4fcacac9a726f7479979b262b402b1ad45f87ce
parenta6fb943f3eb86ca501a7e7b8d4621ba215f91133
anv: anv_gem_mmap() returns MAP_FAILED as mapping error

Take it into account when checking if the mapping failed.

v2:
- Remove map == NULL and its related comment (Emil)

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Fixes: 6f3e3c715a7 ("vk/allocator: Add a BO pool")
Fixes: 9919a2d34de ("anv/image: Memset hiz surfaces to 0 when binding memory")
Cc: "17.0 17.1" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_image.c