summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-29 04:39:17 +0100
committerbunnei <bunneidev@gmail.com>2014-12-29 04:39:17 +0100
commit487a80f9f70f5972aaf53fd855e17c07deb4819f (patch)
tree2ce60ca2c34aca3e4c19395562df0dbbeb7c19f6 /src/video_core
parentMerge pull request #355 from lioncash/simp (diff)
parentGPU: Implement frameskip and remove forced framebuffer swap hack. (diff)
downloadyuzu-487a80f9f70f5972aaf53fd855e17c07deb4819f.tar
yuzu-487a80f9f70f5972aaf53fd855e17c07deb4819f.tar.gz
yuzu-487a80f9f70f5972aaf53fd855e17c07deb4819f.tar.bz2
yuzu-487a80f9f70f5972aaf53fd855e17c07deb4819f.tar.lz
yuzu-487a80f9f70f5972aaf53fd855e17c07deb4819f.tar.xz
yuzu-487a80f9f70f5972aaf53fd855e17c07deb4819f.tar.zst
yuzu-487a80f9f70f5972aaf53fd855e17c07deb4819f.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/command_processor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 2083357fe..9602779f4 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -9,6 +9,7 @@
#include "primitive_assembly.h"
#include "vertex_shader.h"
#include "core/hle/service/gsp_gpu.h"
+#include "core/hw/gpu.h"
#include "debug_utils/debug_utils.h"
@@ -31,6 +32,10 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) {
if (id >= registers.NumIds())
return;
+ // If we're skipping this frame, only allow trigger IRQ
+ if (GPU::g_skip_frame && id != PICA_REG_INDEX(trigger_irq))
+ return;
+
// TODO: Figure out how register masking acts on e.g. vs_uniform_setup.set_value
u32 old_value = registers[id];
registers[id] = (old_value & ~mask) | (value & mask);