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:
parent
adaf98bb9d
commit
6da02c6f56
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user