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

BGR_U8 Encoding doesn't work on web in all browsers on linux #7454

Open
jleibs opened this issue Sep 19, 2024 · 3 comments
Open

BGR_U8 Encoding doesn't work on web in all browsers on linux #7454

jleibs opened this issue Sep 19, 2024 · 3 comments
Assignees
Labels
🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself

Comments

@jleibs
Copy link
Member

jleibs commented Sep 19, 2024

pixi run rerun-web
pixi run -e py python tests/python/release_checklist/check_bgr.py 

Browsers: Firefox and Chrome both show a black tile:
image

Works fine on native.

OS: Arch, Wayland, Nvidia (560 drivers)

@jleibs jleibs added 🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself labels Sep 19, 2024
@jleibs jleibs changed the title BGR Encoding doesn't work on web in all platforms BGR_U8 Encoding doesn't work on web in all platforms Sep 19, 2024
@jleibs
Copy link
Member Author

jleibs commented Sep 19, 2024

Additional info from web console:
image

@jleibs jleibs changed the title BGR_U8 Encoding doesn't work on web in all platforms BGR_U8 Encoding doesn't work on web in all browsers on linux Sep 19, 2024
@Wumpf Wumpf self-assigned this Sep 19, 2024
@Wumpf Wumpf added this to the 0.19 - Dataframe and web video milestone Sep 19, 2024
@Wumpf
Copy link
Member

Wumpf commented Sep 19, 2024

Turns out webgl doesn't support BGR(A)
https://registry.khronos.org/OpenGL-Refpages/es2.0/xhtml/glTexImage2D.xml

I wonder how this fell through the cracks. I definitely tested Web when introducing this feature and I'm fairly sure I had a look at WebGL and WebGPU (where this works via spec). Might want to check if some WebGL impls allow this or (more likely) I only tested WebGPU.

Also there's a wgpu bug here where it doesn't set the downlevel flag for missing texture support.

@Wumpf
Copy link
Member

Wumpf commented Sep 19, 2024

Somebody already logged this on wgpu :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself
Projects
None yet
Development

No branches or pull requests

2 participants