diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-02-04 01:18:05 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-03-29 08:50:17 +0200 |
commit | 715df30a4e27a76917d6172e68fd7f4c3ff1fb9d (patch) | |
tree | 812d8d4f59c942e5ef854d29f63c1ac97b6fe346 /src/amd/vulkan/radv_radeon_winsys.h | |
parent | 78ee8b3f849063e3e37db0767212397da522b6fa (diff) |
radv/amdgpu: Add winsys implementation of virtual buffers.
v2: - Added comments.
- Fixed a double unmap bug.
- Actually unmap the non-edge old ranges.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_radeon_winsys.h')
-rw-r--r-- | src/amd/vulkan/radv_radeon_winsys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_radeon_winsys.h b/src/amd/vulkan/radv_radeon_winsys.h index a8a1d2e369f..9f2430f75de 100644 --- a/src/amd/vulkan/radv_radeon_winsys.h +++ b/src/amd/vulkan/radv_radeon_winsys.h @@ -47,6 +47,7 @@ enum radeon_bo_flag { /* bitfield */ RADEON_FLAG_GTT_WC = (1 << 0), RADEON_FLAG_CPU_ACCESS = (1 << 1), RADEON_FLAG_NO_CPU_ACCESS = (1 << 2), + RADEON_FLAG_VIRTUAL = (1 << 3) }; enum radeon_bo_usage { /* bitfield */ @@ -289,6 +290,10 @@ struct radeon_winsys { void (*buffer_set_metadata)(struct radeon_winsys_bo *bo, struct radeon_bo_metadata *md); + + void (*buffer_virtual_bind)(struct radeon_winsys_bo *parent, + uint64_t offset, uint64_t size, + struct radeon_winsys_bo *bo, uint64_t bo_offset); struct radeon_winsys_ctx *(*ctx_create)(struct radeon_winsys *ws); void (*ctx_destroy)(struct radeon_winsys_ctx *ctx); |