Added GPU state modification to passes.