Commit 9d2aa6e5 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

anv: fix anv_gem_mmap comment to not mention NULL

The function cannot return NULL, update the comment accordingly.

Fixes: b546c9d3 ("anv: anv_gem_mmap() returns MAP_FAILED as mapping error")
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
parent b6643095
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment