diff options
author | Jerome Glisse <jglisse@redhat.com> | 2013-02-08 20:28:06 -0500 |
---|---|---|
committer | Jerome Glisse <jglisse@redhat.com> | 2013-02-08 20:33:22 -0500 |
commit | a0528269a3673e4c4e43c96a9bdc2cb98f1968f2 (patch) | |
tree | a706fbef18993ecb414fbc972b9a9f2c8b5e3243 | |
parent | 18ef6b1265dcd83f511f287388f5e8533e97b35a (diff) |
winsys/radeon: improve debuging printingmesa-9.1-rc1
Make sure one can identify virtual address failure from allocation
failure.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
(cherry picked from commit 9a4768456434f8719e6168254224c9554877230d)
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 6daafc3cae..bb6e954c54 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -593,10 +593,11 @@ static struct pb_buffer *radeon_bomgr_create_bo(struct pb_manager *_mgr, va.offset = bo->va; r = drmCommandWriteRead(rws->fd, DRM_RADEON_GEM_VA, &va, sizeof(va)); if (r && va.operation == RADEON_VA_RESULT_ERROR) { - fprintf(stderr, "radeon: Failed to allocate a buffer:\n"); + fprintf(stderr, "radeon: Failed to allocate virtual address for buffer:\n"); fprintf(stderr, "radeon: size : %d bytes\n", size); fprintf(stderr, "radeon: alignment : %d bytes\n", desc->alignment); fprintf(stderr, "radeon: domains : %d\n", args.initial_domain); + fprintf(stderr, "radeon: va : 0x%016llx\n", (unsigned long long)bo->va); radeon_bo_destroy(&bo->base); return NULL; } |