1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[dxvk] Add dependency flag parameter to emitMemoryBarrier

Will be needed for framebuffer-local barriers inside render passes.
This commit is contained in:
Philip Rebohle 2019-10-13 01:51:29 +02:00
parent 8446c28de1
commit 41cb5ab5f7
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 4 additions and 2 deletions

View File

@ -3475,7 +3475,7 @@ namespace dxvk {
if (m_flags.test(DxvkContextFlag::GpDirtyXfbCounters)) {
m_flags.clr(DxvkContextFlag::GpDirtyXfbCounters);
this->emitMemoryBarrier(
this->emitMemoryBarrier(0,
VK_PIPELINE_STAGE_TRANSFORM_FEEDBACK_BIT_EXT,
VK_ACCESS_TRANSFORM_FEEDBACK_COUNTER_WRITE_BIT_EXT,
VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT, /* XXX */
@ -4458,6 +4458,7 @@ namespace dxvk {
void DxvkContext::emitMemoryBarrier(
VkDependencyFlags flags,
VkPipelineStageFlags srcStages,
VkAccessFlags srcAccess,
VkPipelineStageFlags dstStages,
@ -4470,7 +4471,7 @@ namespace dxvk {
m_cmd->cmdPipelineBarrier(
DxvkCmdBuffer::ExecBuffer, srcStages, dstStages,
0, 1, &barrier, 0, nullptr, 0, nullptr);
flags, 1, &barrier, 0, nullptr, 0, nullptr);
}

View File

@ -1166,6 +1166,7 @@ namespace dxvk {
void finalizeDraw();
void emitMemoryBarrier(
VkDependencyFlags flags,
VkPipelineStageFlags srcStages,
VkAccessFlags srcAccess,
VkPipelineStageFlags dstStages,