Skip to content

Commit

Permalink
i915: add more debug info for check
Browse files Browse the repository at this point in the history
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
  • Loading branch information
feijiang1 committed Mar 25, 2024
1 parent 3e5c7f9 commit bc2e70e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions i915.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,12 +798,12 @@ static int i915_bo_create_from_metadata(struct bo *bo)
*/
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_CREATE_EXT, &gem_create_ext);
if (ret) {
drv_log("drv: DRM_IOCTL_I915_GEM_CREATE_EXT failed (size=%llu)\n",
gem_create_ext.size);
drv_log("drv: DRM_IOCTL_I915_GEM_CREATE_EXT failed (size=%llu) from heap %d with usage 0x%llx\n",
gem_create_ext.size, heap, use_flags);
return -errno;
} else {
drv_info("drv: DRM_IOCTL_I915_GEM_CREATE_EXT OK (size=%llu)\n",
gem_create_ext.size);
drv_info("drv: DRM_IOCTL_I915_GEM_CREATE_EXT OK (size=%llu) from heap %d with usage 0x%llx\n",
gem_create_ext.size, heap, use_flags);
}
gem_handle = gem_create_ext.handle;

Expand Down Expand Up @@ -851,9 +851,11 @@ static int i915_bo_create_from_metadata(struct bo *bo)
gem_create.size = bo->meta.total_size;
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_CREATE, &gem_create);
if (ret) {
drv_log("DRM_IOCTL_I915_GEM_CREATE failed (size=%llu)\n", gem_create.size);
drv_log("DRM_IOCTL_I915_GEM_CREATE failed (size=%llu) with 0x%llx\n", gem_create.size, use_flags);
return -errno;
}
} else {
drv_info("DRM_IOCTL_I915_GEM_CREATE OK (size=%llu) with 0x%llx\n", gem_create.size, use_flags);
}
gem_handle = gem_create.handle;
}

Expand Down

0 comments on commit bc2e70e

Please sign in to comment.