broadcom/simulator: enable multisync in the simulator
authorMelissa Wen <mwen@igalia.com>
Mon, 31 Jan 2022 16:17:36 +0000 (15:17 -0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 9 Feb 2022 07:22:42 +0000 (07:22 +0000)
commit70a219d4a358be1d0d41af5b33203aebb19aa9ec
tree484a95c011ac88ae18dfa739c40a7cd55395f7a5
parent5200e1c2120f3143dcd11eb0bc0b4ddf8ee62f86
broadcom/simulator: enable multisync in the simulator

Use drmSyncobjSignal to signal out_syncobjs when a GPU job submission
ends in the simulator. With this, we can enable multisync support in the
simulator and keep the multisync approach to process fence by submitting
a serialized no-op job that adds the fence to the array of out syncobjs,
i.e.  syncobjs to be signaled in the kernel when a job completes (job
post deps).

Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14768>
src/broadcom/simulator/v3d_simulator.c
src/broadcom/simulator/v3dx_simulator.c