Mesa (master): anv: document that anv_gem_mmap returns MAP_FAILED on error

Emil Velikov evelikov at kemper.freedesktop.org
Thu May 11 13:09:27 UTC 2017


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

Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Thu May  4 15:54:04 2017 +0100

anv: document that anv_gem_mmap returns MAP_FAILED on error

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

---

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

diff --git a/src/intel/vulkan/anv_gem.c b/src/intel/vulkan/anv_gem.c
index 4b6ee58070..ac47da4117 100644
--- a/src/intel/vulkan/anv_gem.c
+++ b/src/intel/vulkan/anv_gem.c
@@ -74,7 +74,7 @@ anv_gem_close(struct anv_device *device, uint32_t gem_handle)
 }
 
 /**
- * Wrapper around DRM_IOCTL_I915_GEM_MMAP.
+ * Wrapper around DRM_IOCTL_I915_GEM_MMAP. Returns MAP_FAILED on error.
  */
 void*
 anv_gem_mmap(struct anv_device *device, uint32_t gem_handle,




More information about the mesa-commit mailing list