mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
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:
parent
31fd926334
commit
c367bd0ee3
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue