iris: Export update_batch_syncobjs()

This function will be needed by i915 and Xe backends.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21389>
This commit is contained in:
José Roberto de Souza 2022-11-16 11:41:56 -08:00 committed by Marge Bot
parent 102e180d0f
commit 780dd291c5
2 changed files with 5 additions and 3 deletions

View file

@ -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);

View file

@ -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);