From 77fde83479e25121e3d470cb05c18b8998862235 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 4 Aug 2019 21:36:54 +0200 Subject: [PATCH] [dxvk] Move some code to where it makes more sense --- src/dxvk/dxvk_context.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index 3f012a77c..fc15b9157 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -3621,11 +3621,6 @@ namespace dxvk { } } - // Select the active binding mask to update - auto& refMask = BindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS - ? m_state.gp.state.bsBindingMask - : m_state.cp.state.bsBindingMask; - for (uint32_t i = 0; i < layout->bindingCount(); i++) { const auto& binding = layout->binding(i); const auto& res = m_rc[binding.slot]; @@ -3728,6 +3723,11 @@ namespace dxvk { } } + // Select the active binding mask to update + auto& refMask = BindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS + ? m_state.gp.state.bsBindingMask + : m_state.cp.state.bsBindingMask; + // If some resources are not bound, we may need to // update spec constants and rebind the pipeline bool updatePipelineState = refMask != bindMask;