r600: clean up fragment shader input scan code