summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_winsys.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-01-25 16:48:17 +0100
committerBas Nieuwenhuizen <[email protected]>2018-01-26 01:26:53 +0100
commit5a3404d443e0c6e8e9a44d7f8dccf96c5ac18f0f (patch)
treec6eb9b8d8e9d0c2dd76f0b4e1e0b7b685b4fdffb /src/gallium/drivers/radeon/radeon_winsys.h
parentdb682b8f0eafd3b9d58e736e9e2f520943a89942 (diff)
radeonsi: Export signalled sync file instead of -1.
-1 is considered an error for EGL_ANDROID_native_fence_sync, so we need to actually create a sync file. Fixes: f536f45250 "radeonsi: implement sync_file import/export" Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_winsys.h')
-rw-r--r--src/gallium/drivers/radeon/radeon_winsys.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index d1c761f4eea..307f8efaec0 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -611,6 +611,11 @@ struct radeon_winsys {
struct pipe_fence_handle *fence);
/**
+ * Return a sync file FD that is already signalled.
+ */
+ int (*export_signalled_sync_file)(struct radeon_winsys *ws);
+
+ /**
* Initialize surface
*
* \param ws The winsys this function is called from.