Remove the memory barrier again as such a guarantee is provided by vkSubmitQueue

This commit is contained in:
Magnus Norddahl 2023-10-24 23:30:26 +02:00
commit 6a971dbaf4

View file

@ -283,10 +283,6 @@ void VkLightmap::Render()
}
#ifdef USE_DRAWINDIRECT
PipelineBarrier()
.AddMemory(VK_ACCESS_HOST_WRITE_BIT, VK_ACCESS_INDIRECT_COMMAND_READ_BIT)
.Execute(cmdbuffer, VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT);
cmdbuffer->drawIndexedIndirect(drawindexed.CommandsBuffer->buffer, 0, drawindexed.Pos, sizeof(VkDrawIndexedIndirectCommand));
#endif