1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 19:24:10 +01:00

[dxvk] Insert barrier before CS image view clear only if needed

Removes one unnecessary sync point in Claybook.
This commit is contained in:
Philip Rebohle 2018-11-01 21:48:22 +01:00
parent f5b21d42fc
commit 175385481e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1630,7 +1630,11 @@ namespace dxvk {
this->spillRenderPass();
this->unbindComputePipeline();
m_barriers.recordCommands(m_cmd);
if (m_barriers.isImageDirty(
imageView->image(),
imageView->subresources(),
DxvkAccess::Write))
m_barriers.recordCommands(m_cmd);
// Query pipeline objects to use for this clear operation
DxvkMetaClearPipeline pipeInfo = m_metaClear->getClearImagePipeline(