From 715df30a4e27a76917d6172e68fd7f4c3ff1fb9d Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Sat, 4 Feb 2017 01:18:05 +0100 Subject: 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 Reviewed-by: Dave Airlie --- src/amd/vulkan/radv_radeon_winsys.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/amd/vulkan/radv_radeon_winsys.h') 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); -- cgit v1.2.3