Hi there! I'm on the Skia team, working on SkSL. I recently discovered a very long-standing bug in the GLSL reference compiler (circa 2002) that has managed to propagate to Mesa, glslang, SwiftShader, and several GPU drivers. I'm trying to patch it where I can.
The code in Mesa appears to have been replaced already.
I've got a patch for SwiftShader and it compiles successfully, but I am not set up to run tests locally, and I wasn't able to upload it to Gerrit:
I've attached the patch below. How would you like me to proceed?