diff options
author | aroulin <andy.roulin@epfl.ch> | 2015-09-07 15:44:37 +0200 |
---|---|---|
committer | aroulin <andy.roulin@epfl.ch> | 2015-09-07 16:50:28 +0200 |
commit | 1484a235301600ec4e93f98732e8fe12a4c39be5 (patch) | |
tree | bd93dcd9e9030a313e040ee28d5b2b7a17123d9d /src/video_core | |
parent | Shader: Fix size_t to int casts of register offsets (diff) | |
download | yuzu-1484a235301600ec4e93f98732e8fe12a4c39be5.tar yuzu-1484a235301600ec4e93f98732e8fe12a4c39be5.tar.gz yuzu-1484a235301600ec4e93f98732e8fe12a4c39be5.tar.bz2 yuzu-1484a235301600ec4e93f98732e8fe12a4c39be5.tar.lz yuzu-1484a235301600ec4e93f98732e8fe12a4c39be5.tar.xz yuzu-1484a235301600ec4e93f98732e8fe12a4c39be5.tar.zst yuzu-1484a235301600ec4e93f98732e8fe12a4c39be5.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index e26abb401..0c02976ac 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp @@ -176,13 +176,13 @@ void JitCompiler::Compile_SwizzleSrc(Instruction instr, unsigned src_num, Source if (src_num == offset_src && instr.common.address_register_index != 0) { switch (instr.common.address_register_index) { case 1: // address offset 1 - MOVAPS(dest, MComplex(src_ptr, ADDROFFS_REG_0, 1, src_offset_disp)); + MOVAPS(dest, MComplex(src_ptr, ADDROFFS_REG_0, SCALE_1, src_offset_disp)); break; case 2: // address offset 2 - MOVAPS(dest, MComplex(src_ptr, ADDROFFS_REG_1, 1, src_offset_disp)); + MOVAPS(dest, MComplex(src_ptr, ADDROFFS_REG_1, SCALE_1, src_offset_disp)); break; - case 3: // adddress offet 3 - MOVAPS(dest, MComplex(src_ptr, LOOPCOUNT_REG, 1, src_offset_disp)); + case 3: // address offset 3 + MOVAPS(dest, MComplex(src_ptr, LOOPCOUNT_REG, SCALE_1, src_offset_disp)); break; default: UNREACHABLE(); |