gallium: only call vertex/prim queue flush when there is something to flush
3 files changed