freedreno: Add submit lock

Graphics / Mesa 3D Graphics Library / Mesa - Rob Clark [chromium.org] - 10 November 2020 17:58 UTC

Add a lock to synchronize batch flush (which can be triggered from a different ctx) with cmdstream emit.

02298ed1fc6 freedreno: Add submit lock
src/gallium/drivers/freedreno/a4xx/fd4_query.c | 3 ++-
src/gallium/drivers/freedreno/a6xx/fd6_blitter.c | 5 ++++
src/gallium/drivers/freedreno/freedreno_batch.c | 21 ++++++++++-----
src/gallium/drivers/freedreno/freedreno_batch.h | 26 ++++++++++++++++++
src/gallium/drivers/freedreno/freedreno_context.c | 31 +++++++++++++++++++---
src/gallium/drivers/freedreno/freedreno_context.h | 1 +
src/gallium/drivers/freedreno/freedreno_draw.c | 9 ++++---
.../drivers/freedreno/freedreno_query_acc.c | 3 ++-
src/gallium/drivers/freedreno/freedreno_query_hw.c | 6 +++--
9 files changed, 88 insertions(+), 17 deletions(-)

Upstream: cgit.freedesktop.org


  • Share