-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
va:add synchornization fence for HW execution #810
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4174,6 +4174,24 @@ VAStatus vaEndPicture( | |
VAContextID context | ||
); | ||
|
||
/** | ||
* Same behavior as vaEndPicture except a sync fd list for synchronizations. | ||
* if sync_num = 0 or sync_fds == NULL, the behavior should be same as vaEndPicture. | ||
* if sync_num >= 1, the sync_fds[0] should be the fence out, this fd(or the fence | ||
* behind this fd) will be overridden by this call, and will be signaled to indicate | ||
* current frame finishing. sync_num = 1 means only fence out is needed. | ||
* sync_fds[1] to sync_fds[1 ~ sync_num-1] is fence in, current HW execution | ||
* will be blocked until all these fences are signaled. | ||
* these fence fds is file descriptor of dma_fence. | ||
*/ | ||
|
||
VAStatus vaEndPicture2( | ||
VADisplay dpy, | ||
VAContextID context, | ||
int32_t *sync_fds, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any advantage in bundling fences out and in vs e.g.
Or something like that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. both ok to me, but now , it is just a PoC, and the implementation is ready here: in the future:
|
||
int32_t sync_num | ||
); | ||
|
||
/** | ||
* Make the end of rendering for a pictures in contexts passed with submission. | ||
* The server should start processing all pending operations for contexts. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to call vaEndPicture2() with a fence-out but no fence-in(s)? If so it'd be good to specify it in this function comment (and maybe other expected example use patterns);