diff options
| author | Pokechu22 <pokechu022@gmail.com> | 2022-11-21 15:35:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-21 15:35:06 -0800 |
| commit | 8f5a58f8be7e6979e277eb16934b140e4bbf10a4 (patch) | |
| tree | 857120e03b87466c424eabc775ba14b49a5d119f /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | 22bcf134bfccd48440d4c0ec4a649b141d7852a9 (diff) | |
| parent | f179fd9c33fa7fb018ae9b8c378606d3b6f104f8 (diff) | |
Merge pull request #11285 from K0bin/cp-checks
VideoCommon:VertexLoaderManager: Reduce CPConfig checks
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index bc19a1c2de..fcc33add24 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -56,18 +56,26 @@ public: if constexpr (!is_preprocess) { if (sub_command == MATINDEX_A) + { + VertexLoaderManager::g_needs_cp_xf_consistency_check = true; VertexShaderManager::SetTexMatrixChangedA(value); + } else if (sub_command == MATINDEX_B) + { + VertexLoaderManager::g_needs_cp_xf_consistency_check = true; VertexShaderManager::SetTexMatrixChangedB(value); + } else if (sub_command == VCD_LO || sub_command == VCD_HI) { VertexLoaderManager::g_main_vat_dirty = BitSet8::AllTrue(CP_NUM_VAT_REG); VertexLoaderManager::g_bases_dirty = true; + VertexLoaderManager::g_needs_cp_xf_consistency_check = true; } else if (sub_command == CP_VAT_REG_A || sub_command == CP_VAT_REG_B || sub_command == CP_VAT_REG_C) { VertexLoaderManager::g_main_vat_dirty[command & CP_VAT_MASK] = true; + VertexLoaderManager::g_needs_cp_xf_consistency_check = true; } else if (sub_command == ARRAY_BASE) { |
