summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-03-27 03:02:15 +0200
committerbunnei <bunneidev@gmail.com>2016-04-14 05:04:47 +0200
commita5a74eb121e0586706c3196d450c088280f996a5 (patch)
tree1ed5030e828e221d2c34596effaa1e680a678391 /src/video_core/shader/shader.cpp
parentshader_jit_x64: Allocate each program independently and persist for emu session. (diff)
downloadyuzu-a5a74eb121e0586706c3196d450c088280f996a5.tar
yuzu-a5a74eb121e0586706c3196d450c088280f996a5.tar.gz
yuzu-a5a74eb121e0586706c3196d450c088280f996a5.tar.bz2
yuzu-a5a74eb121e0586706c3196d450c088280f996a5.tar.lz
yuzu-a5a74eb121e0586706c3196d450c088280f996a5.tar.xz
yuzu-a5a74eb121e0586706c3196d450c088280f996a5.tar.zst
yuzu-a5a74eb121e0586706c3196d450c088280f996a5.zip
Diffstat (limited to 'src/video_core/shader/shader.cpp')
-rw-r--r--src/video_core/shader/shader.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp
index e17368a4a..b35413488 100644
--- a/src/video_core/shader/shader.cpp
+++ b/src/video_core/shader/shader.cpp
@@ -36,8 +36,7 @@ void Setup(UnitState<false>& state) {
#ifdef ARCHITECTURE_x86_64
if (VideoCore::g_shader_jit_enabled) {
u64 cache_key = (Common::ComputeHash64(&g_state.vs.program_code, sizeof(g_state.vs.program_code)) ^
- Common::ComputeHash64(&g_state.vs.swizzle_data, sizeof(g_state.vs.swizzle_data)) ^
- g_state.regs.vs.main_offset);
+ Common::ComputeHash64(&g_state.vs.swizzle_data, sizeof(g_state.vs.swizzle_data)));
auto iter = shader_map.find(cache_key);
if (iter != shader_map.end()) {
@@ -98,7 +97,7 @@ OutputVertex Run(UnitState<false>& state, const InputVertex& input, int num_attr
#ifdef ARCHITECTURE_x86_64
if (VideoCore::g_shader_jit_enabled)
- jit_shader->Run(&state.registers);
+ jit_shader->Run(&state.registers, g_state.regs.vs.main_offset);
else
RunInterpreter(state);
#else