[client] egl: restore effects for PQ frames

PQ sources excluded every external filter from the post-process chain.
Decode PQ/BT.2020 into FP16 linear scRGB before active effects and pass
the resulting transfer state to the desktop shader.

Keep the raw PQ path when no effect is active. This avoids adding a
conversion pass or per-frame latency to the common case.
This commit is contained in:
Geoffrey McRae
2026-07-19 19:48:58 +10:00
parent e12d1dc9a8
commit 0333bf0261
7 changed files with 340 additions and 45 deletions

View File

@@ -49,5 +49,6 @@ bool egl_postProcessRun(EGL_PostProcess * this, EGL_Texture * tex,
EGL_DesktopRects * rects, int desktopWidth, int desktopHeight,
unsigned int targetX, unsigned int targetY, bool useDMA, bool hdrPQ);
/* Return the current output texture and whether it remains PQ encoded. */
EGL_Texture * egl_postProcessGetOutput(EGL_PostProcess * this,
unsigned int * outputX, unsigned int * outputY);
unsigned int * outputX, unsigned int * outputY, bool * hdrPQ);