Christian Gmeineraustriancoder@fosstodon.org
Jun 10, 2026, 9:43 AMNew blog post: Fixing the R/B swap the right way 🔴🔵
Vivante GPUs always write pixels in BGRA byte order. etnaviv had been fixing that in the fragment shader - until it crashed on scalar outputs. The proprietary blob had a simpler answer all along: just tell the sampler the format is swapped and let the hardware cancel it out.
It deleted more code than it added AND gained 4.7% in glmark2. Then dmabuf broke the closed loop.
https://christian-gmeiner.info/2026-06-10-fixing-the-rb-swap-the-right-way/