diff options
author | Marek Olšák <[email protected]> | 2014-08-06 22:27:43 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-08-09 23:41:15 +0200 |
commit | e878e154cdfd4dbb5474f776e0a6d86fcb983098 (patch) | |
tree | 1188d8adccd0c07a4f148316adcfd6189d79f9e2 /src/gallium/drivers/radeon/r600_texture.c | |
parent | 43b5c34cc36d44aafdc5f1eb6bb607756eacf953 (diff) |
gallium/radeon: store VM address in r600_resource
This will help to get rid of the buffer_get_virtual_address calls.
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_texture.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 482bbff4e63..326aca4e09b 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -655,6 +655,7 @@ r600_texture_create_object(struct pipe_screen *screen, } else { resource->buf = buf; resource->cs_buf = rscreen->ws->buffer_get_cs_handle(buf); + resource->gpu_address = rscreen->ws->buffer_get_virtual_address(resource->cs_buf); resource->domains = rscreen->ws->buffer_get_initial_domain(resource->cs_buf); } |