mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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->spillRenderPass();
|
||||||
this->unbindComputePipeline();
|
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
|
// Query pipeline objects to use for this clear operation
|
||||||
DxvkMetaClearPipeline pipeInfo = m_metaClear->getClearImagePipeline(
|
DxvkMetaClearPipeline pipeInfo = m_metaClear->getClearImagePipeline(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user