diff options
| author | 2016-12-17 14:09:02 -0800 | |
|---|---|---|
| committer | 2017-01-25 18:53:24 -0800 | |
| commit | 9ea5eacf919c8c257f8c5fda65e5fac2b6adee07 (patch) | |
| tree | c62ade75473e8db7110f4528c40bb32f0be03684 /src/video_core/shader/shader.cpp | |
| parent | Shader: Don't read ShaderSetup from global state (diff) | |
| download | yuzu-9ea5eacf919c8c257f8c5fda65e5fac2b6adee07.tar.gz yuzu-9ea5eacf919c8c257f8c5fda65e5fac2b6adee07.tar.xz yuzu-9ea5eacf919c8c257f8c5fda65e5fac2b6adee07.zip | |
Shader: Initialize conditional_code in interpreter
This doesn't belong in LoadInputVertex because it also happens for
non-VS invocations. Since it's not used by the JIT it seems adequate to
initialize it in the interpreter which is the only thing that cares
about them.
Diffstat (limited to 'src/video_core/shader/shader.cpp')
| -rw-r--r-- | src/video_core/shader/shader.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index b30dae476..1662b5d38 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp | |||
| @@ -76,9 +76,6 @@ void UnitState::LoadInputVertex(const InputVertex& input, int num_attributes) { | |||
| 76 | 76 | ||
| 77 | for (int i = 0; i < num_attributes; i++) | 77 | for (int i = 0; i < num_attributes; i++) |
| 78 | registers.input[attribute_register_map.GetRegisterForAttribute(i)] = input.attr[i]; | 78 | registers.input[attribute_register_map.GetRegisterForAttribute(i)] = input.attr[i]; |
| 79 | |||
| 80 | conditional_code[0] = false; | ||
| 81 | conditional_code[1] = false; | ||
| 82 | } | 79 | } |
| 83 | 80 | ||
| 84 | MICROPROFILE_DEFINE(GPU_Shader, "GPU", "Shader", MP_RGB(50, 50, 240)); | 81 | MICROPROFILE_DEFINE(GPU_Shader, "GPU", "Shader", MP_RGB(50, 50, 240)); |