r600g/sb: fix issues cause by GLSL switching to loops for switch