summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-07-22 09:29:00 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:28 +0100
commite580299467a8aa7f56e8b66a63112dc06c870b15 (patch)
tree70209a958349fabec583d92b5a30476853634188 /src
parentgl_texture_cache: Simplify rescaling (diff)
downloadyuzu-e580299467a8aa7f56e8b66a63112dc06c870b15.tar
yuzu-e580299467a8aa7f56e8b66a63112dc06c870b15.tar.gz
yuzu-e580299467a8aa7f56e8b66a63112dc06c870b15.tar.bz2
yuzu-e580299467a8aa7f56e8b66a63112dc06c870b15.tar.lz
yuzu-e580299467a8aa7f56e8b66a63112dc06c870b15.tar.xz
yuzu-e580299467a8aa7f56e8b66a63112dc06c870b15.tar.zst
yuzu-e580299467a8aa7f56e8b66a63112dc06c870b15.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/ir_opt/rescaling_pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/rescaling_pass.cpp b/src/shader_recompiler/ir_opt/rescaling_pass.cpp
index 293593c78..f8d04b6e3 100644
--- a/src/shader_recompiler/ir_opt/rescaling_pass.cpp
+++ b/src/shader_recompiler/ir_opt/rescaling_pass.cpp
@@ -17,7 +17,7 @@ namespace {
void PatchFragCoord(IR::Block& block, IR::Inst& inst) {
IR::IREmitter ir{block, IR::Block::InstructionList::s_iterator_to(inst)};
const IR::F32 down_factor{ir.ResolutionDownFactor()};
- const IR::F32 frag_coord{&inst};
+ const IR::F32 frag_coord{ir.GetAttribute(inst.Arg(0).Attribute())};
const IR::F32 downscaled_frag_coord{ir.FPMul(frag_coord, down_factor)};
inst.ReplaceUsesWith(downscaled_frag_coord);
}