forked from ShuriZma/suyu
1
0
Fork 0

Maxwell3D: mark index buffers as dirty after updating counts

This commit is contained in:
Liam 2022-03-11 08:47:01 -05:00
parent 82c3042c0f
commit 70e632f153
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include "common/assert.h" #include "common/assert.h"
#include "core/core.h" #include "core/core.h"
#include "core/core_timing.h" #include "core/core_timing.h"
#include "video_core/dirty_flags.h"
#include "video_core/engines/maxwell_3d.h" #include "video_core/engines/maxwell_3d.h"
#include "video_core/gpu.h" #include "video_core/gpu.h"
#include "video_core/memory_manager.h" #include "video_core/memory_manager.h"
@ -211,6 +212,7 @@ void Maxwell3D::ProcessMethodCall(u32 method, u32 argument, u32 nonshadow_argume
case MAXWELL3D_REG_INDEX(small_index): case MAXWELL3D_REG_INDEX(small_index):
regs.index_array.count = regs.small_index.count; regs.index_array.count = regs.small_index.count;
regs.index_array.first = regs.small_index.first; regs.index_array.first = regs.small_index.first;
dirty.flags[VideoCommon::Dirty::IndexBuffer] = true;
return DrawArrays(); return DrawArrays();
case MAXWELL3D_REG_INDEX(clear_buffers): case MAXWELL3D_REG_INDEX(clear_buffers):
return ProcessClearBuffers(); return ProcessClearBuffers();