st/mesa: remove redundant flushes from st_flush
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 22 Oct 2017 15:39:02 +0000 (17:39 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 9 Nov 2017 13:20:58 +0000 (14:20 +0100)
commitfbda7958ff21ab8595ca7d601df6cf033a7eabf7
treeef2bbf1abcce3447f9212ad86cfc180e5673c9af
parent884a0b2a9e55d4c1ca39475b50d9af598d7d7280
st/mesa: remove redundant flushes from st_flush

st_flush should flush state tracker-internal state and the pipe, but
not mesa/main state. Of the four callers:

- glFlush/glFinish already call FLUSH_{VERTICES,STATE}.
- st_vdpau doesn't need to call them.
- st_manager will now call them explicitly.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_flush.c
src/mesa/state_tracker/st_manager.c
src/mesa/state_tracker/st_vdpau.c