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

webgpu support #36

Open
herkhinah opened this issue Feb 16, 2024 · 5 comments
Open

webgpu support #36

herkhinah opened this issue Feb 16, 2024 · 5 comments

Comments

@herkhinah
Copy link

Firefox nightly supposedly has webgpu support but I can't get it running. Firefox complains Validation error without device target: No suitable adapter found. In about:config WebGPU is enabled and the blocklist is disabled and about:support says it can also find my integrated graphics card. Do I have to configure some environment variables so firefox can find some missing libraries?

@colemickens
Copy link
Member

we have historically had issues with firefox-bin variants and hardware acceleration, but it is working for me:

screenshot-1708101156

It doesn't seem like I have anything webgl overriden in my about:config either.

@MatthewCroughan
Copy link

Setting LD_LIBRARY_PATH=/run/opengl-driver/lib on NixOS fixed this for me.

@colemickens
Copy link
Member

I will try to keep this tab open to look at it, but I'm getting swamped from multiple angles in my life right now and don't know when I'll really be able to give this attention.

For what it's worth, I am glad to be aware of this. I'm surprised that Firefox Nightly works as well as it does, seemingly without the same type of wrapper present in nixpkgs wrapped-firefox builds. I was sure that we have had to fix this same opengl/libglvnd wrap issue for this build in the past.

There's a Nix Mozilla Matrix room too, might be worth bringing this up there if someone else wants to investigate more.

@colemickens
Copy link
Member

colemickens commented Apr 28, 2024

This works for me, by just running firefox-nightly: https://toji.github.io/webgpu-test/

When I look at firefox-nightly, it's a shell script that pulls libglvnd in LD_LIBRARY_PATH which should enable gpu driver loading via /run/opengl-driver.

@MatthewCroughan
Copy link

@colemickens yeah, for what it's worth I didn't notice any slowdowns, but also never performed any tests prior to wrapping with LD_LIBRARY_PATH. However, it did make the log lines go away. But maybe the log lines don't mean much in the first place. Who knows!

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

No branches or pull requests

3 participants