[Bug 265482] www/firefox 103.0: WebGL no longer works with nvidia driver

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 25 Dec 2022 19:59:27 UTC

--- Comment #3 from marek@mky.waw.pl ---
> I wonder how WebGL in Firefox works on Linux given https://download.nvidia.com/XFree86/Linux-x86_64/510.60.02/README/kms.html still says "NVIDIA's DRM KMS support is still considered experimental. It is disabled by default"

I checked this on several modern Linux distros (Ubuntu, Mint, Debian) and it
seems that DRM support is now enabled by default. I have not investigated it
deeper, just checked the presence of nvidia_drm module and the tree of

One more thing that I can confirm is that I successfully compiled nvidia-drm
module from amshafer's work on github and it works with Firefox! 

The confirmed working versions are:


drm-510-kmod-5.10.113_8 (compiled from ports, because I needed the same sources
to build nvidia-drm)

525.60.11 branch from https://github.com/amshafer/nvidia-driver

Kernel log after loaded nvidia-drm.ko:

nvidia0: <NVIDIA GeForce GTX 1650> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 
525.60.11  Wed Nov 23 22:41:38 UTC 2022
sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
[drm] [nvidia-drm] [GPU ID 0x00000a00] Loading driver
[drm] Initialized nvidia-drm 0.0.0 20160202 for nvidia0 on minor 0

# ls -l /dev/dri/
total 0
lrwxr-xr-x  1 root  wheel   8 Dec 25 20:18 card0 -> ../drm/0
lrwxr-xr-x  1 root  wheel  10 Dec 25 20:18 renderD128 -> ../drm/128

It would be nice to see a x11/nvidia-drm in the ports tree or (probably better)
integrate amshafer's patches with the next nvidia driver x11/nvidia-driver-525

You are receiving this mail because:
You are the assignee for the bug.