va:add synchornization fence for HW execution#810
va:add synchornization fence for HW execution#810XinfengZhang wants to merge 1 commit intointel:masterfrom
Conversation
|
is this Linux only? |
good question, it is for a linux PoC , will not merge until we could verify it. |
va/va.h
Outdated
| * Same behavior with vaEndPicture except a sync fd list for synchronizations. | ||
| * if sync_num = 0 or sync_fds == NULL, the behavior should be same with vaEndPicture. |
There was a problem hiding this comment.
Should be: "Same behaviour as" and ... "the behaviour should be the same as vaEndPicture()"
| * current frame finishing. | ||
| * 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. |
There was a problem hiding this comment.
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);
| VAStatus vaEndPicture2( | ||
| VADisplay dpy, | ||
| VAContextID context, | ||
| int32_t *sync_fds, |
There was a problem hiding this comment.
Is there any advantage in bundling fences out and in vs e.g.
int32_t *sync_fd_out, // Out. Can be nullptr.
int32_t* sync_fds_in, // In. Can be nullptr.
int32_t sync_fds_in_num, // In. Can be 0.
Or something like that?
There was a problem hiding this comment.
both ok to me, but now , it is just a PoC, and the implementation is ready here:
intel/media-driver#1803
in the future:
- libva should support both linux and windows, so, we will have some other interfaces to hide the dma fence, unify the syn definition in future.
- decouple the fence in and out to too parameters as your mentioned.
add fence in and fence out for vaEndPicture which is using to submit command buffer fence out will be signaled after HW execution, fence in is the dependencies Signed-off-by: Carl Zhang <carl.zhang@intel.com>
do not merge!
add fence in and fence out for vaEndPicture which is using to submit command buffer fence out will be signaled after HW execution, fence in is the dependencies