[Bug 258947] multimedia/libva: va_openDriver() returns 2

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258947

--- Comment #6 from Dan Kotowski <[email protected]> ---
We can reject this bug.

In a moment of clarity, I realized and learned a few things:

1. I had not properly added the necessary users to the `video` group.

2. In order to use libva with DRM in a jail, not only must you expose the drm
and dri devs to the jail, but also the pci device, like so:

```
add path 'dri*' unhide
add path 'dri/*' unhide
add path 'drm*' unhide
add path 'drm/*' unhide
add path 'pci' unhide
```

It seems this is to satisfy the `drm_get_pci_id_for_fd` method here:
https://github.com/mesa3d/mesa/blob/mesa-21.1.5/src/loader/loader.c#L388-L407

I'll leave it to the rest of you to decide whether this 2nd point should be
added to libva or mesa-gallium-va's post-install messages. There's already
something there for Intel iGPUs, perhaps we should have something for PCI
DRM-based drivers too (eg amdgpu).

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.