Skip to content
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

add MediaCopy #1070

Merged
merged 1 commit into from
Dec 9, 2020
Merged

add MediaCopy #1070

merged 1 commit into from
Dec 9, 2020

Conversation

rawide
Copy link
Contributor

@rawide rawide commented Oct 26, 2020

add mediaCopy ddi implementation.
linked libva PR: intel/libva#243
add libva-utils PR: intel/libva-utils#203

@dmitryermilov
Copy link
Contributor

One more thing. This change a relatively simple, it's a proxy to DdiMedia_CopyInternal which seems to do all work. So reviewing this PR only , it's impossible to identify which sub-features of vaCopy the current PR introduce. Under sub-features I mean VA_COPY_SYNC_BLOCK/VA_COPY_SYNC_NONBLOCK/VA_COPY_MODE_BALANCE/etc , VACopyObjectBuffer/VACopyObjectSurface. Could you describe it in git commit message ?

@rawide
Copy link
Contributor Author

rawide commented Oct 29, 2020

One more thing. This change a relatively simple, it's a proxy to DdiMedia_CopyInternal which seems to do all work. So reviewing this PR only , it's impossible to identify which sub-features of vaCopy the current PR introduce. Under sub-features I mean VA_COPY_SYNC_BLOCK/VA_COPY_SYNC_NONBLOCK/VA_COPY_MODE_BALANCE/etc , VACopyObjectBuffer/VACopyObjectSurface. Could you describe it in git commit message ?
sample add in libva-utils PR, and VACopy related definition is in libva PR. Do you mean we should add them in this commit again?

@dmitryermilov
Copy link
Contributor

One more thing. This change a relatively simple, it's a proxy to DdiMedia_CopyInternal which seems to do all work. So reviewing this PR only , it's impossible to identify which sub-features of vaCopy the current PR introduce. Under sub-features I mean VA_COPY_SYNC_BLOCK/VA_COPY_SYNC_NONBLOCK/VA_COPY_MODE_BALANCE/etc , VACopyObjectBuffer/VACopyObjectSurface. Could you describe it in git commit message ?
sample add in libva-utils PR, and VACopy related definition is in libva PR. Do you mean we should add them in this commit again?

If full support of all underlying vaCopy features is appeared by this PR - then I don't think we need additional info in git message. But even above you wrote "currently, buffer copy is not supported by vaCopy". I assume such things better to capture in git message, together with other limitations if any.

@rawide
Copy link
Contributor Author

rawide commented Oct 30, 2020

One more thing. This change a relatively simple, it's a proxy to DdiMedia_CopyInternal which seems to do all work. So reviewing this PR only , it's impossible to identify which sub-features of vaCopy the current PR introduce. Under sub-features I mean VA_COPY_SYNC_BLOCK/VA_COPY_SYNC_NONBLOCK/VA_COPY_MODE_BALANCE/etc , VACopyObjectBuffer/VACopyObjectSurface. Could you describe it in git commit message ?
sample add in libva-utils PR, and VACopy related definition is in libva PR. Do you mean we should add them in this commit again?

If full support of all underlying vaCopy features is appeared by this PR - then I don't think we need additional info in git message. But even above you wrote "currently, buffer copy is not supported by vaCopy". I assume such things better to capture in git message, together with other limitations if any.

okay, will add some notification in this git commit message.

Copy link
Contributor

@XinfengZhang XinfengZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the change is ok for async copy, but still need to check the parameter of copy_sync.

@XinfengZhang XinfengZhang added the verifying PR: fix ready and verifying with build/test label Dec 7, 2020
add New libva API vaCopy DDI implementation.
1. only support VACopyObjectSurface copy, VACopyObjectBuffer copy is not ready since it could be handled by CPU.
2. currently, copy sync handle mode is absent, app can call vaSyncSurface to make sure copy complete.
3. linked libva PR: intel/libva#243
4. linked libva-utils sample code PR: intel/libva-utils#203
@intel-mediadev intel-mediadev merged commit 4b9b113 into intel:master Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verifying PR: fix ready and verifying with build/test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants