At first glance this seems missing, since we handle it manually for CPU
and WC maps. Although a bit inconsistent, it's actually not necessary.
Thanks to Chris Wilson for explaining this to me.
Reviewed-by: Matt Turner <mattst88@gmail.com>
return NULL;
}
- /* and mmap it */
+ /* and mmap it. We don't need to use VALGRIND_MALLOCLIKE_BLOCK
+ * because Valgrind will already intercept this mmap call.
+ */
bo->map_gtt = drm_mmap(0, bo->size, PROT_READ | PROT_WRITE,
MAP_SHARED, bufmgr->fd, mmap_arg.offset);
if (bo->map_gtt == MAP_FAILED) {