I learned something about GPUs today

This is a writeup of a bugfix I did in Blackshift recently. I tried to write it like a murder mystery, showing you the bug first and then dropping clues until the reveal, so maybe if you're into graphics programming you'll go “aha!’ at some point and figure it out before you get to the end.