summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_pipe_flush.c
diff options
context:
space:
mode:
authorAndres Rodriguez <andresx7@gmail.com>2017-12-04 15:27:08 -0500
committerAndres Rodriguez <andresx7@gmail.com>2018-01-30 15:13:49 -0500
commit585daa237807ad4bc8ce3bf40610113333a529de (patch)
treeee2de49469b4f7e2bb369a819c755f697b383e4d /src/gallium/drivers/svga/svga_pipe_flush.c
parent16dd0eb517407bcd3040b0f5f7eb31f1bdc48a48 (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 <andresx7@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_flush.c')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_flush.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_flush.c b/src/gallium/drivers/svga/svga_pipe_flush.c
index 85ec34f3145..1f4eebc124a 100644
--- a/src/gallium/drivers/svga/svga_pipe_flush.c
+++ b/src/gallium/drivers/svga/svga_pipe_flush.c
@@ -85,10 +85,12 @@ static void svga_flush( struct pipe_context *pipe,
static void
svga_create_fence_fd(struct pipe_context *pipe,
struct pipe_fence_handle **fence,
- int fd)
+ int fd,
+ enum pipe_fd_type type)
{
struct svga_winsys_screen *sws = svga_winsys_screen(pipe->screen);
+ assert(type == PIPE_FD_TYPE_NATIVE_SYNC);
sws->fence_create_fd(sws, fence, fd);
}