diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-28 06:34:27 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:34 +0200 |
commit | 627161c38e2ee986ea3cc9c7e46e09f54390d701 (patch) | |
tree | 995495dac1967254c1020edf4bec60c960538e05 /src/shader_recompiler/ir_opt | |
parent | shader: Adhere to disk shader cache setting (diff) | |
download | yuzu-627161c38e2ee986ea3cc9c7e46e09f54390d701.tar yuzu-627161c38e2ee986ea3cc9c7e46e09f54390d701.tar.gz yuzu-627161c38e2ee986ea3cc9c7e46e09f54390d701.tar.bz2 yuzu-627161c38e2ee986ea3cc9c7e46e09f54390d701.tar.lz yuzu-627161c38e2ee986ea3cc9c7e46e09f54390d701.tar.xz yuzu-627161c38e2ee986ea3cc9c7e46e09f54390d701.tar.zst yuzu-627161c38e2ee986ea3cc9c7e46e09f54390d701.zip |
Diffstat (limited to 'src/shader_recompiler/ir_opt')
-rw-r--r-- | src/shader_recompiler/ir_opt/texture_pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp index 9e0a2fb09..76cab04c2 100644 --- a/src/shader_recompiler/ir_opt/texture_pass.cpp +++ b/src/shader_recompiler/ir_opt/texture_pass.cpp @@ -283,8 +283,8 @@ TextureInst MakeInst(Environment& env, IR::Block* block, IR::Inst& inst) { } TextureType ReadTextureType(Environment& env, const ConstBufferAddr& cbuf) { - const u32 secondary_index{cbuf.has_secondary ? cbuf.index : cbuf.secondary_index}; - const u32 secondary_offset{cbuf.has_secondary ? cbuf.offset : cbuf.secondary_offset}; + const u32 secondary_index{cbuf.has_secondary ? cbuf.secondary_index : cbuf.index }; + const u32 secondary_offset{cbuf.has_secondary ? cbuf.secondary_offset : cbuf.offset }; const u32 lhs_raw{env.ReadCbufValue(cbuf.index, cbuf.offset)}; const u32 rhs_raw{env.ReadCbufValue(secondary_index, secondary_offset)}; return env.ReadTextureType(lhs_raw | rhs_raw); |