summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar bunnei2019-02-01 13:24:04 -0500
committerGravatar GitHub2019-02-01 13:24:04 -0500
commiteceab45dac2b67392a896fa322af15e6aa81c242 (patch)
treeefe4c76ad073669099073c556201fb7c456807f2 /src/video_core/engines
parentMerge pull request #2073 from lioncash/opus (diff)
parentshader_ir: Unify constant buffer offset values (diff)
downloadyuzu-eceab45dac2b67392a896fa322af15e6aa81c242.tar.gz
yuzu-eceab45dac2b67392a896fa322af15e6aa81c242.tar.xz
yuzu-eceab45dac2b67392a896fa322af15e6aa81c242.zip
Merge pull request #2074 from ReinUsesLisp/shader-ir-unify-offset
shader_ir: Unify constant buffer offset values
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 9989825f8..713b01c9f 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -1248,11 +1248,19 @@ union Instruction {
1248 union { 1248 union {
1249 BitField<20, 14, u64> offset; 1249 BitField<20, 14, u64> offset;
1250 BitField<34, 5, u64> index; 1250 BitField<34, 5, u64> index;
1251
1252 u64 GetOffset() const {
1253 return offset * 4;
1254 }
1251 } cbuf34; 1255 } cbuf34;
1252 1256
1253 union { 1257 union {
1254 BitField<20, 16, s64> offset; 1258 BitField<20, 16, s64> offset;
1255 BitField<36, 5, u64> index; 1259 BitField<36, 5, u64> index;
1260
1261 s64 GetOffset() const {
1262 return offset;
1263 }
1256 } cbuf36; 1264 } cbuf36;
1257 1265
1258 // Unsure about the size of this one. 1266 // Unsure about the size of this one.