summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-19 02:04:27 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:32 +0200
commitc560bf99c273e21f53387635515a08f5d50b8583 (patch)
tree8b44e8c7d50fa0ee448b26a32516cc68a8361f7a /src/shader_recompiler
parentglasm: Support textures used in more than one stage (diff)
downloadyuzu-c560bf99c273e21f53387635515a08f5d50b8583.tar
yuzu-c560bf99c273e21f53387635515a08f5d50b8583.tar.gz
yuzu-c560bf99c273e21f53387635515a08f5d50b8583.tar.bz2
yuzu-c560bf99c273e21f53387635515a08f5d50b8583.tar.lz
yuzu-c560bf99c273e21f53387635515a08f5d50b8583.tar.xz
yuzu-c560bf99c273e21f53387635515a08f5d50b8583.tar.zst
yuzu-c560bf99c273e21f53387635515a08f5d50b8583.zip
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp
index 0b6d853eb..8c5cd286d 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp
@@ -71,6 +71,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr,
case IR::Attribute::VertexId:
ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.stage_name);
break;
+ case IR::Attribute::FrontFace:
+ ctx.Add("CMP.S {}.x,{}.facing.x,0,-1;", inst, ctx.stage_name);
+ break;
default:
throw NotImplementedException("Get attribute {}", attr);
}