summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-02-14 19:22:53 +0100
committerGitHub <noreply@github.com>2020-02-14 19:22:53 +0100
commit63a59b993599e709e5b4bf6f389c7d4ae0c9889a (patch)
tree0a39c9faa6afdd84405a9635337a043d05b16fb1 /src/video_core/engines
parentMerge pull request #3398 from brianclinkenbeard/fix-cmake-sdl2 (diff)
parentshader/decode: Fix constant buffer offsets (diff)
downloadyuzu-63a59b993599e709e5b4bf6f389c7d4ae0c9889a.tar
yuzu-63a59b993599e709e5b4bf6f389c7d4ae0c9889a.tar.gz
yuzu-63a59b993599e709e5b4bf6f389c7d4ae0c9889a.tar.bz2
yuzu-63a59b993599e709e5b4bf6f389c7d4ae0c9889a.tar.lz
yuzu-63a59b993599e709e5b4bf6f389c7d4ae0c9889a.tar.xz
yuzu-63a59b993599e709e5b4bf6f389c7d4ae0c9889a.tar.zst
yuzu-63a59b993599e709e5b4bf6f389c7d4ae0c9889a.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 402869fde..c9bc83cd7 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -1677,11 +1677,11 @@ union Instruction {
} xmad;
union {
- BitField<20, 14, u64> offset;
+ BitField<20, 14, u64> shifted_offset;
BitField<34, 5, u64> index;
u64 GetOffset() const {
- return offset * 4;
+ return shifted_offset * 4;
}
} cbuf34;