diff options
author | Jerome Glisse <jglisse@redhat.com> | 2011-12-02 10:20:29 -0500 |
---|---|---|
committer | Jerome Glisse <jglisse@redhat.com> | 2012-01-13 18:00:53 -0500 |
commit | bb1f0cf3508630a9a93512c79badf8c493c46743 (patch) | |
tree | 4b71d6ab7183ae1789dcae9cd7f56d93fb9a6c6c /src/gallium/drivers/r600/r600_resource.h | |
parent | 6c2c2c5a07c81a15a89519a8a84ef7c69698903b (diff) | |
download | external_mesa3d-bb1f0cf3508630a9a93512c79badf8c493c46743.zip external_mesa3d-bb1f0cf3508630a9a93512c79badf8c493c46743.tar.gz external_mesa3d-bb1f0cf3508630a9a93512c79badf8c493c46743.tar.bz2 |
r600g: add support for virtual address space on cayman v11
Virtual address space put the userspace in charge of their GPU
address space. It's up to userspace to bind bo into the virtual
address space. Command stream can them be executed using the
IB_VM chunck.
This patch add support for this configuration. It doesn't remove
the 64K ib size limit thought this limit can be extanded up to
1M for IB_VM chunk.
v2: fix rendering
v3: fix rendering when using index buffer
v4: make vm conditional on kernel support add basic va management
v5: catch the case when we already have va for a bo
v6: agd5f: update on top of ioctl changes
v7: agd5f: further ioctl updates
v8: indentation cleanup + fix non cayman
v9: rebase against lastest mesa + improvement from Marek & Michel
v10: fix cut/paste bug
v11: don't rely on updated radeon_drm.h
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/gallium/drivers/r600/r600_resource.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_resource.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_resource.h b/src/gallium/drivers/r600/r600_resource.h index 1ca6729..f39ac55 100644 --- a/src/gallium/drivers/r600/r600_resource.h +++ b/src/gallium/drivers/r600/r600_resource.h @@ -102,4 +102,6 @@ struct r600_pipe_context; void r600_upload_const_buffer(struct r600_pipe_context *rctx, struct r600_resource **rbuffer, uint32_t *offset); +uint64_t r600_resource_va(struct pipe_screen *screen, struct pipe_resource *resource); + #endif |