From 72aaa83f4b5ba193cd4570da610893cd7b054332 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 1 Dec 2016 01:52:31 +0000 Subject: radv: add semaphore support Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_radeon_winsys.h | 9 +++++++++ 1 file changed, 9 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 38cb4408ff4..4b738b8cf46 100644 --- a/src/amd/vulkan/radv_radeon_winsys.h +++ b/src/amd/vulkan/radv_radeon_winsys.h @@ -253,6 +253,7 @@ struct radeon_bo_metadata { struct radeon_winsys_bo; struct radeon_winsys_fence; +struct radeon_winsys_sem; struct radeon_winsys { void (*destroy)(struct radeon_winsys *ws); @@ -304,6 +305,10 @@ struct radeon_winsys { int queue_index, struct radeon_winsys_cs **cs_array, unsigned cs_count, + struct radeon_winsys_sem **wait_sem, + unsigned wait_sem_count, + struct radeon_winsys_sem **signal_sem, + unsigned signal_sem_count, bool can_patch, struct radeon_winsys_fence *fence); @@ -326,6 +331,10 @@ struct radeon_winsys { struct radeon_winsys_fence *fence, bool absolute, uint64_t timeout); + + struct radeon_winsys_sem *(*create_sem)(struct radeon_winsys *ws); + void (*destroy_sem)(struct radeon_winsys_sem *sem); + }; static inline void radeon_emit(struct radeon_winsys_cs *cs, uint32_t value) -- cgit v1.2.3