diff options
author | Emil Velikov <[email protected]> | 2017-05-04 15:50:27 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-04 18:06:18 +0100 |
commit | 9d2aa6e5067752efbc0acbd728bc0bde49aefb61 (patch) | |
tree | a849511a063dc6eba87751b60e04dc180bbed868 /src/intel/vulkan/anv_image.c | |
parent | b6643095bab360b9e49a2c8b0f1c97f7e27d84ce (diff) |
anv: fix anv_gem_mmap comment to not mention NULL
The function cannot return NULL, update the comment accordingly.
Fixes: b546c9d ("anv: anv_gem_mmap() returns MAP_FAILED as mapping error")
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r-- | src/intel/vulkan/anv_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 55402b25571..d21e055f020 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -348,7 +348,7 @@ VkResult anv_BindImageMemory( if (image->aux_surface.isl.size > 0) { /* The offset and size must be a multiple of 4K or else the - * anv_gem_mmap call below will return NULL. + * anv_gem_mmap call below will fail. */ assert((image->offset + image->aux_surface.offset) % 4096 == 0); assert(image->aux_surface.isl.size % 4096 == 0); |