diff options
author | Fredrik Höglund <[email protected]> | 2016-10-25 20:31:41 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-10-26 12:25:35 +1000 |
commit | 0a153f4ee472f8f17575bbfe05f1c96fb5ecf1ea (patch) | |
tree | ad97fd431fb7e0a785d328392cf81cbac4fe36c4 /src/amd/vulkan/radv_private.h | |
parent | f2770fb3d5e7a4a456f8f14726f72a1e37496419 (diff) |
radv: mark the fence as submitted and signalled in vkAcquireNextImageKHR
This stops the debug layers from complaining when fences are used to
throttle image acquisition.
Cc: "13.0" <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index caf27f2c2de..cfdda365480 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1206,6 +1206,13 @@ void radv_initialise_cmask(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, uint32_t value); void radv_initialize_dcc(struct radv_cmd_buffer *cmd_buffer, struct radv_image *image, uint32_t value); + +struct radv_fence { + struct radeon_winsys_fence *fence; + bool submitted; + bool signalled; +}; + #define RADV_DEFINE_HANDLE_CASTS(__radv_type, __VkType) \ \ static inline struct __radv_type * \ |