Dynamic pipeline state set before the pipeline is set was reading dynamic flags from previous pipeline. This is fixed here by accepting the dynamic state, but deferring the decision to use either dynamic or static state until the pipeline is encoded.