r600g: refactor sample states into a reusable struct.