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:
parent
f5b21d42fc
commit
175385481e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user