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

[dxvk] Fix write access flag for barriers

Fixes: adaf98bb9d7b73f4e324ee9d9b14049f29cb70fc
This commit is contained in:
Philip Rebohle 2019-04-02 15:01:37 +02:00
parent adaf98bb9d
commit 6da02c6f56
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -21,6 +21,10 @@ namespace dxvk {
VkAccessFlags dstAccess) {
DxvkAccessFlags access = this->getAccessTypes(srcAccess);
if (srcStages == VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT
|| dstStages == VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT)
access.set(DxvkAccess::Write);
m_srcStages |= srcStages;
m_dstStages |= dstStages;
@ -42,6 +46,11 @@ namespace dxvk {
VkAccessFlags dstAccess) {
DxvkAccessFlags access = this->getAccessTypes(srcAccess);
if (srcStages == VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT
|| dstStages == VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT
|| srcLayout != dstLayout)
access.set(DxvkAccess::Write);
m_srcStages |= srcStages;
m_dstStages |= dstStages;