freedreno: make fd_batch a one-shot thing
authorRob Clark <robdclark@gmail.com>
Tue, 17 Jul 2018 14:12:55 +0000 (10:12 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 17 Jul 2018 15:00:00 +0000 (11:00 -0400)
commit4b847b38ae3cfd2bacc2fd5b01478046796c52bf
tree7068e8fd787a03077a67b913b6530577672f7f4d
parentf129971e71ccc8c711ccfc01d5adad7e30687549
freedreno: make fd_batch a one-shot thing

Re-allocate rather than re-use.  Originally we had an unnecessarily
complex design to avoid re-allocating cmdstream buffers.  But now that
support for "growable" cmdstream buffers has been in place for a couple
years, I guess we can care a bit less about the extra overhead on older
kernels.

But making the batches one-shot removes a class of potential race
conditions vs the flush_queue.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_batch.h