v3dv: ignore barriers for image layout transitions from undefined layouts
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 26 Apr 2022 07:28:59 +0000 (09:28 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 2 May 2022 06:04:13 +0000 (08:04 +0200)
commitc9f68361a8ac762b54505eda541a167b014ce0a2
treee6862136494c0d98cf48850a9003e45d17f2577f
parenta44d498287a631cbf623a3c54e7f169e4daf1171
v3dv: ignore barriers for image layout transitions from undefined layouts

Layout transitions are not relevant to us, we only care about barriers
that involve a sync point between read/write actions on the image across
GPU jobs.

Image transitions from undefined layout can only happen before the image
is ever used by the GPU, which means they are never relevant to our
implementation.

This improves performance in vkQuake.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16235>
src/broadcom/vulkan/v3dv_cmd_buffer.c