v3dv: ignore no-op barriers

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16235>
This commit is contained in:
Iago Toral Quiroga 2022-04-13 10:40:54 +02:00
parent 31fd926334
commit c367bd0ee3

View file

@ -2650,6 +2650,9 @@ v3dv_CmdPipelineBarrier(VkCommandBuffer commandBuffer,
{
V3DV_FROM_HANDLE(v3dv_cmd_buffer, cmd_buffer, commandBuffer);
if (memoryBarrierCount + bufferBarrierCount + imageBarrierCount == 0)
return;
/* We only care about barriers between GPU jobs */
if (srcStageMask == VK_PIPELINE_STAGE_HOST_BIT ||
dstStageMask == VK_PIPELINE_STAGE_HOST_BIT) {