I don't know if here is the best place to do this, in short - download the patch - download mesa (either git or tarball), unpack, cd into that dir - patch -p1 < /path/to/the/patch - compile & install