diff options
author | Christian König <[email protected]> | 2014-01-21 11:49:06 -0700 |
---|---|---|
committer | Christian König <[email protected]> | 2014-02-06 15:54:14 +0100 |
commit | 9b218dcdd7877b81d8b6c55799b6ec33e1cc8079 (patch) | |
tree | 69e78fbae0e9125564a72193ce9f1ab1cbc04b48 /src/gallium/drivers/radeon/radeon_video.h | |
parent | 7bcfb0bc8ffed0db244cf0b3d4e200add590a02a (diff) |
radeon/video: directly create buffers in the right domain
Avoid moving things around on start of stream.
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_video.h')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_video.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_video.h b/src/gallium/drivers/radeon/radeon_video.h index 7833ddc6d0b..55d2ca466de 100644 --- a/src/gallium/drivers/radeon/radeon_video.h +++ b/src/gallium/drivers/radeon/radeon_video.h @@ -43,6 +43,7 @@ /* video buffer representation */ struct rvid_buffer { + enum radeon_bo_domain domain; struct pb_buffer* buf; struct radeon_winsys_cs_handle* cs_handle; }; @@ -51,7 +52,8 @@ struct rvid_buffer unsigned rvid_alloc_stream_handle(void); /* create a buffer in the winsys */ -bool rvid_create_buffer(struct radeon_winsys *ws, struct rvid_buffer *buffer, unsigned size); +bool rvid_create_buffer(struct radeon_winsys *ws, struct rvid_buffer *buffer, + unsigned size, enum radeon_bo_domain domain); /* destroy a buffer */ void rvid_destroy_buffer(struct rvid_buffer *buffer); |