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

vaGetDeviceNames inspired fixes and documentation #733

Merged
merged 6 commits into from
Sep 13, 2023

Conversation

evelikov
Copy link
Contributor

Effectively a follow-up on #731

  • va/backend: document the vaGetDriver* APIs
  • x11/dri2: limit the array handling to avoid out of range access
  • va: remove unreachable "DRIVER BUG"
  • va: drop no longer applicable vaGetDriverNames check

There a couple of unrelated fixes, noticed while browsing through:

  • win32: remove duplicate adapter_luid entry - @sivileri can you have a quick look?
  • va/backend: annotate vafool as deprecated

@evelikov
Copy link
Contributor Author

@XinfengZhang this and your original fixes should be backported to all releases which have DRI3 support.

Thanks

@@ -38,18 +38,17 @@
const char VAAPI_DEFAULT_DRIVER_NAME[] = "vaon12";
Copy link
Contributor

Choose a reason for hiding this comment

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

This commit is Reviewed-by: Sil Vilerino <[email protected]>

@XinfengZhang
Copy link
Contributor

windows/windows-msvc build failed

@evelikov
Copy link
Contributor Author

evelikov commented Aug 1, 2023

windows/windows-msvc build failed

Should be fixed now. As a bonus, I've rebased against latest master branch.

The adapter_luid is already stored in pDriverContext->native_dpy. The
copy in VADisplayContextWin32, is not needed.

Signed-off-by: Emil Velikov <[email protected]>
All the vafool codebase was removed a while ago, with little sign of it
coming back.

Signed-off-by: Emil Velikov <[email protected]>
Note that the old ones are deprecated. For the new one mention the
ownership model and num_drivers meaning/handling.

Signed-off-by: Emil Velikov <[email protected]>
As documented (and updated) the callee(s) cannot set the num_drivers
past the original size. So drop the unreachable code.

Signed-off-by: Emil Velikov <[email protected]>
All the backends implement the callback. So this temporary check can go
now.

Signed-off-by: Emil Velikov <[email protected]>
@XinfengZhang XinfengZhang merged commit 1652b74 into intel:master Sep 13, 2023
13 checks passed
@evelikov evelikov deleted the getdeviceslimits branch September 15, 2023 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants