v3dv: simplify handling of no-op jobs
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 16 Apr 2020 10:35:06 +0000 (12:35 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:29 +0000 (21:21 +0000)
commit71ba6a11098472e17aba64b681e333bb07e8a182
treea8acd3dbe1d0fbb81e917cd257452e771c0816b0
parent7ea4601a28a402ff5b2ed4af9221e2d084fd886e
v3dv: simplify handling of no-op jobs

Avoid creating (and destroying) no-op jobs more than once. Instead,
cache the job and use it every time we need to submit one.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_device.c
src/broadcom/vulkan/v3dv_private.h
src/broadcom/vulkan/v3dv_queue.c