st/mesa: use asynchronous flushes in st_finish
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 9 Nov 2017 13:34:20 +0000 (14:34 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 20 Nov 2017 17:15:07 +0000 (18:15 +0100)
commit764bd6ef96d5a3247f18c0016d57c95edd9d4102
tree1efe2b4543cdcde817eddf4c5d19fa39427feeb3
parent2d8b82baaad43a41d076a5273ac0de3c03cc5a55
st/mesa: use asynchronous flushes in st_finish

With threaded gallium, the driver may currently be running in another
thread. In that case, we will execute all remaining commands in that
thread instead of syncing, which should be better for cache locality.

Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_flush.c