Accelerated Canvas2D swaps red/blue channels on Wayland with Mesa iris (Intel Arc 140V)
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
People
(Reporter: ste.videsott, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:159.0) Gecko/20100101 Firefox/159.0
Steps to reproduce
- Use Firefox 159.0.1 on Linux (Wayland, KDE Plasma, display scale 1.5) with Mesa 26.2.6 iris on an Intel Arc 140V (Lunar Lake). Default profile, gfx.canvas.accelerated at its default value.
- Open https://watabou.github.io/village-generator/?seed=1548772364&tags=river,grove,highway&width=831&trees=88518857&name=Valguado&pop=244
- Compare the colors on screen with the PNG exported by the same page (export button).
- Open about:config, set gfx.canvas.accelerated to false, restart Firefox, and reload the page.
Actual results
With gfx.canvas.accelerated=true, the colors drawn on the canvas look like red and blue are swapped: the river is tan/ochre instead of blue, the fields are blue-grey instead of brown, the houses are blue instead of brown. Green areas look almost unchanged. The rest of the page (non-canvas content) is correct. Other canvas-based sites show the same problem (Roll20, gidd.io games).
The exported PNG file has the correct colors, so the canvas data is right and the problem is in how it is displayed.
With gfx.canvas.accelerated=false the colors are correct.
Environment: Firefox 159.0.1, Mesa 26.2.6 (iris), Intel Arc 140V (Lunar Lake, device 0x64a0), Wayland, KDE Plasma, scale 1.5, two monitors. about:support Graphics: WebRender, ACCELERATED_CANVAS2D available, CANVAS_RENDERER_THREAD available, DMABUF_SURFACE_EXPORT blocklisted (FEATURE_FAILURE_BROKEN_DRIVER). Screenshot with wrong colors, the correctly colored export and the about:support Graphics table are attached.
Expected results
The canvas should show the same colors as the exported PNG (blue river, brown fields and houses), with hardware-accelerated canvas enabled.
Comment 1•10 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics: Canvas2D' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•10 days ago
|
Description
•