(Glide64) refactor code into gSPSetGeometryMode and gSPClearGeometryMode