From 780dd291c5fd22e39a803343a14f941527991ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Wed, 16 Nov 2022 11:41:56 -0800 Subject: [PATCH] iris: Export update_batch_syncobjs() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This function will be needed by i915 and Xe backends. Signed-off-by: José Roberto de Souza Reviewed-by: Marcin Ślusarz Part-of: --- src/gallium/drivers/iris/iris_batch.c | 6 +++--- src/gallium/drivers/iris/iris_batch.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index efed05517bb..ed0b33badbf 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -877,8 +877,8 @@ update_bo_syncobjs(struct iris_batch *batch, struct iris_bo *bo, bool write) } } -static void -update_batch_syncobjs(struct iris_batch *batch) +void +iris_batch_update_syncobjs(struct iris_batch *batch) { for (int i = 0; i < batch->exec_count; i++) { struct iris_bo *bo = batch->exec_bos[i]; @@ -942,7 +942,7 @@ submit_batch(struct iris_batch *batch) simple_mtx_lock(bo_deps_lock); - update_batch_syncobjs(batch); + iris_batch_update_syncobjs(batch); if (INTEL_DEBUG(DEBUG_BATCH | DEBUG_SUBMIT)) { iris_dump_fence_list(batch); diff --git a/src/gallium/drivers/iris/iris_batch.h b/src/gallium/drivers/iris/iris_batch.h index ad1307f6fa2..22b9e5838b9 100644 --- a/src/gallium/drivers/iris/iris_batch.h +++ b/src/gallium/drivers/iris/iris_batch.h @@ -429,6 +429,8 @@ iris_batch_name_to_string(enum iris_batch_name name); batch <= &ice->batches[((struct iris_screen *)ice->ctx.screen)->devinfo->ver >= 12 ? IRIS_BATCH_BLITTER : IRIS_BATCH_COMPUTE]; \ ++batch) +void iris_batch_update_syncobjs(struct iris_batch *batch); + void iris_dump_fence_list(struct iris_batch *batch); void iris_dump_bo_list(struct iris_batch *batch); void iris_batch_decode_batch(struct iris_batch *batch);