From: Lionel Landwerlin Date: Mon, 29 Oct 2018 18:14:47 +0000 (+0000) Subject: intel/sanitize_gpu: add debug message on mmap fail X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fd0ff75f342bf8d6ec5565449d5c504b2b0af6d;p=mesa.git intel/sanitize_gpu: add debug message on mmap fail Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli --- diff --git a/src/intel/tools/intel_sanitize_gpu.c b/src/intel/tools/intel_sanitize_gpu.c index 4f1a2d2ead5..8f4f2ff8ec6 100644 --- a/src/intel/tools/intel_sanitize_gpu.c +++ b/src/intel/tools/intel_sanitize_gpu.c @@ -226,8 +226,10 @@ create_with_padding(int fd, struct drm_i915_gem_create *create) }; ret = libc_ioctl(fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); - if (ret != 0) + if (ret != 0) { + intel_logd("Unable to map buffer %d for pad creation.\n", create->handle); return 0; + } noise_values = (uint8_t*) (uintptr_t) mmap_arg.addr_ptr; fill_noise_buffer(noise_values, create->handle & 0xFF,