diff options
author | Andres Rodriguez <[email protected]> | 2017-12-04 15:27:08 -0500 |
---|---|---|
committer | Andres Rodriguez <[email protected]> | 2018-01-30 15:13:49 -0500 |
commit | 585daa237807ad4bc8ce3bf40610113333a529de (patch) | |
tree | ee2de49469b4f7e2bb369a819c755f697b383e4d /src/gallium/state_trackers/dri | |
parent | 16dd0eb517407bcd3040b0f5f7eb31f1bdc48a48 (diff) |
gallium: add type parameter to create_fence_fd
An fd can potentially have different types of objects backing it.
Specifying the type helps us make sure we treat the FD correctly.
This is in preparation to allow importing syncobj fence FDs in addition
to native sync FDs.
Signed-off-by: Andres Rodriguez <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri_helpers.c b/src/gallium/state_trackers/dri/dri_helpers.c index 37ab2c2f404..f1501bfb815 100644 --- a/src/gallium/state_trackers/dri/dri_helpers.c +++ b/src/gallium/state_trackers/dri/dri_helpers.c @@ -119,7 +119,7 @@ dri2_create_fence_fd(__DRIcontext *_ctx, int fd) stapi->flush(stapi, ST_FLUSH_FENCE_FD, &fence->pipe_fence); } else { /* importing a foreign fence fd: */ - ctx->create_fence_fd(ctx, &fence->pipe_fence, fd); + ctx->create_fence_fd(ctx, &fence->pipe_fence, fd, PIPE_FD_TYPE_NATIVE_SYNC); } if (!fence->pipe_fence) { FREE(fence); |