summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-29 01:47:31 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:34 +0200
commiteb8464cb3d3cd4a3b5a03d8194ec7b34d8becd75 (patch)
treef6585c9aa418be11517d486e8f49e6e696e9c319 /src/shader_recompiler/backend
parentshader: Clang-format secondary textures (diff)
downloadyuzu-eb8464cb3d3cd4a3b5a03d8194ec7b34d8becd75.tar
yuzu-eb8464cb3d3cd4a3b5a03d8194ec7b34d8becd75.tar.gz
yuzu-eb8464cb3d3cd4a3b5a03d8194ec7b34d8becd75.tar.bz2
yuzu-eb8464cb3d3cd4a3b5a03d8194ec7b34d8becd75.tar.lz
yuzu-eb8464cb3d3cd4a3b5a03d8194ec7b34d8becd75.tar.xz
yuzu-eb8464cb3d3cd4a3b5a03d8194ec7b34d8becd75.tar.zst
yuzu-eb8464cb3d3cd4a3b5a03d8194ec7b34d8becd75.zip
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_image.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
index 1c8c70661..81d5fe72c 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
@@ -161,6 +161,7 @@ std::string GradOffset(const IR::Value& offset) {
std::pair<std::string, ScopedRegister> Coord(EmitContext& ctx, const IR::Value& coord) {
if (coord.IsImmediate()) {
ScopedRegister scoped_reg(ctx.reg_alloc);
+ ctx.Add("MOV.U {}.x,{};", scoped_reg.reg, ScalarU32{ctx.reg_alloc.Consume(coord)});
return {fmt::to_string(scoped_reg.reg), std::move(scoped_reg)};
}
std::string coord_vec{fmt::to_string(Register{ctx.reg_alloc.Consume(coord)})};