I’m using rootless podman, not sure if that will make a big difference.
Add the user running the containers to the video using the following command:
sudo usermod -a -G video [username]
Then I have this in my quadlet for the containers that need HW acceleration. As I understand it, keep-groups means the user rights to use video resources will be passed from the OS into the container.
AddDevice=/dev/dri/renderD128:/dev/dri/renderD128
AddDevice=/dev/dri/card0:/dev/dri/card0
PodmanArgs=--group-add keep-groups
I don’t think I have anything else relevant in my set up. Hope it helps!
Hope you have some success 🙂 Mine isn’t discrete, I just have an AMD Ryzen 7 4700U and I’m running off the integrated Vega graphics.