Last active
June 8, 2017 05:36
-
-
Save Subv/6bc22b82b6e12b5524501f2ed8568cf2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp | |
| index 4633a1d..15894e6 100644 | |
| --- a/src/video_core/command_processor.cpp | |
| +++ b/src/video_core/command_processor.cpp | |
| @@ -349,7 +351,11 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { | |
| vertex_cache_ids.fill(-1); | |
| auto* shader_engine = Shader::GetEngine(); | |
| - Shader::UnitState shader_unit; | |
| + static Shader::UnitState shader_units[4] = {}; | |
| + static size_t unit_index = 0; | |
| + | |
| + Shader::UnitState& shader_unit = shader_units[unit_index]; | |
| + unit_index = (unit_index + 1) % 4; | |
| shader_engine->SetupBatch(g_state.vs, regs.vs.main_offset); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment