mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Use granular image access tracking in copyImageToBufferCs
This commit is contained in:
parent
e9bc7c5cd1
commit
e49733f36d
1 changed files with 3 additions and 2 deletions
|
@ -3787,7 +3787,8 @@ namespace dxvk {
|
|||
|
||||
ensureImageCompatibility(image, imageUsage);
|
||||
|
||||
flushPendingAccesses(*image, vk::makeSubresourceRange(imageSubresource), DxvkAccess::Read);
|
||||
flushPendingAccesses(*image, imageSubresource,
|
||||
imageOffset, imageExtent, DxvkAccess::Read);
|
||||
|
||||
if (unlikely(m_features.test(DxvkContextFeature::DebugUtils))) {
|
||||
const char* dstName = buffer->info().debugName;
|
||||
|
@ -3932,7 +3933,7 @@ namespace dxvk {
|
|||
accessBuffer(DxvkCmdBuffer::ExecBuffer, *bufferView,
|
||||
VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT, VK_ACCESS_2_SHADER_WRITE_BIT, DxvkAccessOp::None);
|
||||
|
||||
accessImage(DxvkCmdBuffer::ExecBuffer, *image, vk::makeSubresourceRange(imageSubresource), imageLayout,
|
||||
accessImageRegion(DxvkCmdBuffer::ExecBuffer, *image, imageSubresource, imageOffset, imageExtent, imageLayout,
|
||||
VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT, VK_ACCESS_2_SHADER_READ_BIT, DxvkAccessOp::None);
|
||||
|
||||
m_flags.set(DxvkContextFlag::ForceWriteAfterWriteSync);
|
||||
|
|
Loading…
Add table
Reference in a new issue