summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_buffer.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-06 01:33:21 +0200
committerMarek Olšák <[email protected]>2013-04-16 13:56:47 +0200
commit413ca78af3b29036c051c827a0bfc4d20454e6bf (patch)
treea8fd3bf9276126256a1dd3dd31fa12c46e3280c6 /src/gallium/drivers/r600/r600_buffer.c
parent05fa3595e06c8b504f0eb86db8ed6ba88bffc98e (diff)
r600g: add a debug flag for printing virtual addresses of resources
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r--src/gallium/drivers/r600/r600_buffer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index e46f7fd4bfc..a977b02ac4e 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -279,6 +279,13 @@ bool r600_init_resource(struct r600_screen *rscreen,
res->cs_buf = rscreen->ws->buffer_get_cs_handle(res->buf);
res->domains = domains;
util_range_set_empty(&res->valid_buffer_range);
+
+ if (rscreen->debug_flags & DBG_VM && res->b.b.target == PIPE_BUFFER) {
+ fprintf(stderr, "VM start=0x%llX end=0x%llX | Buffer %u bytes\n",
+ r600_resource_va(&rscreen->screen, &res->b.b),
+ r600_resource_va(&rscreen->screen, &res->b.b) + res->buf->size,
+ res->buf->size);
+ }
return true;
}