aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
diff options
context:
space:
mode:
authorAndres Rodriguez <[email protected]>2017-10-26 22:42:08 -0400
committerAndres Rodriguez <[email protected]>2018-01-30 15:13:49 -0500
commitcc9762d74d33898f56cfcbd9ab386364a19df6dc (patch)
treed10843af6d1b7d224a55a908b4b677265d18d50a /src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
parent29b9bd0539ed21805228bdd0933e543eec16c670 (diff)
winsys/amdgpu: add support for syncobj signaling v3
Add the ability to signal a syncobj when a cs completes execution. v2: corresponding changes for gallium fence->semaphore rename v3: s/semaphore/fence for pipe objects Signed-off-by: Andres Rodriguez <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys/amdgpu/drm/amdgpu_cs.h')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_cs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
index fbf44b36610..80acb7cb8c2 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h
@@ -104,6 +104,10 @@ struct amdgpu_cs_context {
unsigned num_fence_dependencies;
unsigned max_fence_dependencies;
+ struct pipe_fence_handle **syncobj_to_signal;
+ unsigned num_syncobj_to_signal;
+ unsigned max_syncobj_to_signal;
+
struct pipe_fence_handle *fence;
/* the error returned from cs_flush for non-async submissions */