Merge pull request #12227 from iwubcode/wait_on_gpu_when_config_changes VideoCommon: wait for the GPU to be finished doing any work before invalidating pipelines when graphics config changes