driver: flush TS after flushing depth and stencil

Flushing TS while still rendering to color/depth can sometimes hang,
so flush TS after flushing color and depth instead of before.