What's the transfer function for SDR content under HDR mode

You don’t need that, KWin handles sRGB content correctly without hacks - using the gamma 2.2 transfer function