restore_planes_and_stream_state
restore_planes_and_stream_state(&dc->scratch.current_state, stream);
restore_planes_and_stream_state(&dc->scratch.new_state, stream);
restore_planes_and_stream_state(&scratch->dc->scratch.current_state, scratch->stream);
restore_planes_and_stream_state(&scratch->dc->scratch.new_state, scratch->stream);
restore_planes_and_stream_state(&scratch->dc->scratch.new_state, scratch->stream);