driver: add additional debug flags `flush_all` and `finish_all`
driver: fix MSAA hang issue

Changing the MSAA mode clobbers PS.INPUT_COUNT.
Hence make sure that it is set before all other state.