diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-14 15:02:45 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-14 15:02:47 +0200 |
commit | 5db1b54b58caf9dc5ce0367f183ed7cca222909e (patch) | |
tree | 0c9d0bdcedbc19ba4a402e95755de7a42a74f533 | |
parent | video_core/engines/maxwell_3d: Simplify for loops into ranged for loops within InitializeRegisterDefaults() (diff) | |
download | yuzu-5db1b54b58caf9dc5ce0367f183ed7cca222909e.tar yuzu-5db1b54b58caf9dc5ce0367f183ed7cca222909e.tar.gz yuzu-5db1b54b58caf9dc5ce0367f183ed7cca222909e.tar.bz2 yuzu-5db1b54b58caf9dc5ce0367f183ed7cca222909e.tar.lz yuzu-5db1b54b58caf9dc5ce0367f183ed7cca222909e.tar.xz yuzu-5db1b54b58caf9dc5ce0367f183ed7cca222909e.tar.zst yuzu-5db1b54b58caf9dc5ce0367f183ed7cca222909e.zip |
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index bdd52d5b3..241245c59 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -178,13 +178,13 @@ void Maxwell3D::CallMethod(const GPU::MethodCall& method_call) { // Vertex buffer if (method >= MAXWELL3D_REG_INDEX(vertex_array) && - method < MAXWELL3D_REG_INDEX(vertex_array) + 4 * 32) { + method < MAXWELL3D_REG_INDEX(vertex_array) + 4 * Regs::NumVertexArrays) { dirty_flags.vertex_array.set((method - MAXWELL3D_REG_INDEX(vertex_array)) >> 2); } else if (method >= MAXWELL3D_REG_INDEX(vertex_array_limit) && - method < MAXWELL3D_REG_INDEX(vertex_array_limit) + 2 * 32) { + method < MAXWELL3D_REG_INDEX(vertex_array_limit) + 2 * Regs::NumVertexArrays) { dirty_flags.vertex_array.set((method - MAXWELL3D_REG_INDEX(vertex_array_limit)) >> 1); } else if (method >= MAXWELL3D_REG_INDEX(instanced_arrays) && - method < MAXWELL3D_REG_INDEX(instanced_arrays) + 32) { + method < MAXWELL3D_REG_INDEX(instanced_arrays) + Regs::NumVertexArrays) { dirty_flags.vertex_array.set(method - MAXWELL3D_REG_INDEX(instanced_arrays)); } } |