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).
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(-)