summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/intel/tools/intel_sanitize_gpu.c4
1 files changed, 3 insertions, 1 deletions
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,