-
Notifications
You must be signed in to change notification settings - Fork 302
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
vainfo does not load the nvidia va driver on x11, but okay on wayland #675
Comments
At this link more information about the problem: https://bbs.archlinux.org/viewtopic.php?pid=2078521#p2078521 I did run the following a bisect to find the problematic commit :
I am going to try to build libva with the bluid option with_legacy |
Building with |
it is from #617 , @evelikov , looks https://github.com/elFarto/nvidia-vaapi-driver still need nvctrl? |
One can enable the option if they need to - that's why the option exists Edit: off the top of my head nvidia could support DRI3, which will avoid such issues. Albeit being closed source, fixing that is up-to the Nvidia team. Plus va/drm should just work I believe |
@XinfengZhang We don't use/need nvctrl within the driver itself. We only need libva to pick the correct driver for NVIDIA cards. |
I've been trying to reproduce the crashes on my intel+nvidia box for over a week, to no avail so far. Perhaps because I have a Intel + Nvidia combo? @benjarobin picking up the vainfo crash - can you rebuild libva + nvidia libva driver with debug symbols so the backtrace is more useful? Looking through the code-base - the nvidia driver doesn't have any X related code and the only Thanks |
(we reluctantly changed our config; we're phasing out X11 server support
from the distro basically and this is a step in the opposite direction...
but it's just a config so shrug)
…On Mon, Jan 30, 2023 at 6:31 AM Emil Velikov ***@***.***> wrote:
I've been trying to reproduce the crashes on my intel+nvidia box for over
a week, to no avail so far. Perhaps because I have a Intel + Nvidia combo?
@benjarobin <https://github.com/benjarobin> picking up the vainfo crash -
can you rebuild libva + nvidia libva driver with debug symbols so the
backtrace is more useful?
Looking through the code-base - the nvidia driver doesn't have any X
related code and the only XDisplayString instance in libva is in the
fglrx code (disabled by default) and should be unreachable if you've got
Nvidia GPU.
Thanks
—
Reply to this email directly, view it on GitHub
<#675 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ54FNKJPTMPU4M4NVWUY3WU7GEHANCNFSM6AAAAAATT4MRAQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This is already with debug symbol...
I check the source code and I found the following code path which call
|
@benjarobin you're a star - didn't realise you're using the vdpau wrapper/driver. There's a bug in that driver - will post a patch tomorrow at some point. |
This request was made for OS vendors still using X11. For Clear Linux, using Wayland and NVIDIA graphics, I figured the steps needed to make Chrome and derivatives work on 140 dpi or HiDPI displays. It turns out that one must set text-scaling-factor back to 1.0, enable an experimental Wayland feature scale-monitor-framebuffer, and set the display scale closely matching the display DPI 100%, 125%, 150%, ....
Clear Linux, running Wayland and NVIDIA graphics, is working with a 140 DPI display. I will update the README later this week. |
@benjarobin feel free to pick xtknight/vdpau-va-driver-vp9@34f166a - this is the most minimalist fix required. Overall the driver needs a bunch more fixes, although there's no upstream so any patches will go to the void. @marioroy thanks for the context - without the Clear Linux mention it was pretty confusing why Intel devs would care about Nvidia libva drivers ;-) I'm in the process of removing X11 from the cuda base nvidia driver and the vdpau wrapper can be fixed with the above. I believe we can close this issue now. |
The official upstream git is https://cgit.freedesktop.org/vaapi/vdpau-driver, but it has been dead for 10 years... |
@evelikov thanks for fixing the @fenrus75 thanks for not rushing X11 removal in Clear Linux. There was a time when I felt like the avatars by @benjarobin, trying to get Wayland working. All is well now. Wayland works great including proper display scaling. The animated avatars are cool, @benjarobin. Wow! |
It requires setting
LIBVA_DRIVER_NAME=nvidia
for thevainfo
utility to succeed on x11.x11
wayland
The text was updated successfully, but these errors were encountered: