mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 10:24:10 +01:00
[dxvk] Add IgnoreGraphicsBarriers flag
This commit is contained in:
parent
fe68b43335
commit
5109000747
@ -4145,7 +4145,8 @@ namespace dxvk {
|
||||
|
||||
// This is necessary because we'll only do hazard
|
||||
// tracking if the active pipeline has side effects
|
||||
this->spillRenderPass(true);
|
||||
if (!m_barrierControl.test(DxvkBarrierControl::IgnoreGraphicsBarriers))
|
||||
this->spillRenderPass(true);
|
||||
}
|
||||
|
||||
if (m_state.gp.pipeline->layout()->pushConstRange().size)
|
||||
@ -5029,6 +5030,9 @@ namespace dxvk {
|
||||
|
||||
template<bool Indexed, bool Indirect, bool DoEmit>
|
||||
void DxvkContext::commitGraphicsBarriers() {
|
||||
if (m_barrierControl.test(DxvkBarrierControl::IgnoreGraphicsBarriers))
|
||||
return;
|
||||
|
||||
auto layout = m_state.gp.pipeline->layout();
|
||||
|
||||
constexpr auto storageBufferAccess = VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_TRANSFORM_FEEDBACK_WRITE_BIT_EXT;
|
||||
|
@ -73,6 +73,7 @@ namespace dxvk {
|
||||
*/
|
||||
enum class DxvkBarrierControl : uint32_t {
|
||||
IgnoreWriteAfterWrite = 1,
|
||||
IgnoreGraphicsBarriers = 2,
|
||||
};
|
||||
|
||||
using DxvkBarrierControlFlags = Flags<DxvkBarrierControl>;
|
||||
|
Loading…
Reference in New Issue
Block a user