panfrost: Implement sRGB blend shaders

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [] - 6 January 2020 12:49 UTC

We use the lowering in nir_format_convert. There are native ops for this so this is far from optimal and not remotely efficient but as with most blend shader things right now, it's hard enough to get it working, so let's focus on that for now. We'll make it fast later (once we have GLES3 stable, we can start optimizing these things).

Fixes dEQP-GLES3.functional.fragment_ops.blend.fbo_srgb.*

dadfca3775b panfrost: Implement sRGB blend shaders
src/gallium/drivers/panfrost/nir/nir_lower_framebuffer.c | 16 ++++++++++++++++
src/gallium/drivers/panfrost/pan_context.c | 8 --------
2 files changed, 16 insertions(+), 8 deletions(-)


  • Share