Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Removed the hard coded HW decoder capability info. #415
base: develop
Are you sure you want to change the base?
Removed the hard coded HW decoder capability info. #415
Changes from 1 commit
407b3b7
4cc2d2f
ce04289
5dae726
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Hardcoding the
drm_node
to"/dev/dri/renderD128"
breaks the multi-GPU support. Instead, you can use thepdc->device_id
to construct thedrm_node
. You can use a similar approach that is used hereThere 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.
Correct. I wanted to discuss this further.
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.
call
vaSetInfoCallback(va_display, NULL, NULL);
before calling thevaInitialize
to silence the VA-API for printing out the below messages when running any test.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.
I don't see the above messages. But will add to make sure.
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.
move
{
to the previous line.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.
call
vaDestroyConfig(va_display, va_config_id)
; andvaTerminate(va_display);
at the end of this function.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.
Yep thanks for catching this. Was going to add but somehow forgot.
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.
Using the
initialized
variable to callProbeHwDecodeCapabilities()
only once is not correct, as it disrupts the Multi-GPU support when multiple GPUs with different capabilities are present in a system. As previously mentioned, you can use thepdc->device_id
to construct thedrm_node
within theProbeHwDecodeCapabilities()
function. If consecutive calls of theGetDecoderCaps
use the samepdc->device_id
, you can skip calling theProbeHwDecodeCapabilities()
. On the other hand, if the consecutive calls use differentpdc->device_id
, then it's necessary to callProbeHwDecodeCapabilities()
to obtain the correct capability of each device.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.
Yup same discussion point on the device_id. Let's discuss.