summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-28 01:35:11 +0100
committerGitHub <noreply@github.com>2021-12-28 01:35:11 +0100
commitc9e4acc4e27ccaea7147dd130cde9650d6679b4d (patch)
tree9d9f51719fb737a1921cfa072732bf4218a7e9cd
parentMerge pull request #7620 from bunnei/kernel-thread-x18 (diff)
parentemit_glasm_context_get_set: Fix GetAttribute return value type. (diff)
downloadyuzu-c9e4acc4e27ccaea7147dd130cde9650d6679b4d.tar
yuzu-c9e4acc4e27ccaea7147dd130cde9650d6679b4d.tar.gz
yuzu-c9e4acc4e27ccaea7147dd130cde9650d6679b4d.tar.bz2
yuzu-c9e4acc4e27ccaea7147dd130cde9650d6679b4d.tar.lz
yuzu-c9e4acc4e27ccaea7147dd130cde9650d6679b4d.tar.xz
yuzu-c9e4acc4e27ccaea7147dd130cde9650d6679b4d.tar.zst
yuzu-c9e4acc4e27ccaea7147dd130cde9650d6679b4d.zip
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp8
1 files changed, 4 insertions, 4 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 081b2c8e0..6f98d0998 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
@@ -86,7 +86,7 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, Scal
}
switch (attr) {
case IR::Attribute::PrimitiveId:
- ctx.Add("MOV.S {}.x,primitive.id;", inst);
+ ctx.Add("MOV.F {}.x,primitive.id;", inst);
break;
case IR::Attribute::PositionX:
case IR::Attribute::PositionY:
@@ -113,13 +113,13 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, Scal
ctx.Add("MOV.F {}.x,vertex.tesscoord.{};", inst, swizzle);
break;
case IR::Attribute::InstanceId:
- ctx.Add("MOV.S {}.x,{}.instance;", inst, ctx.attrib_name);
+ ctx.Add("MOV.F {}.x,{}.instance;", inst, ctx.attrib_name);
break;
case IR::Attribute::VertexId:
- ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.attrib_name);
+ ctx.Add("MOV.F {}.x,{}.id;", inst, ctx.attrib_name);
break;
case IR::Attribute::FrontFace:
- ctx.Add("CMP.S {}.x,{}.facing.x,0,-1;", inst, ctx.attrib_name);
+ ctx.Add("CMP.F {}.x,{}.facing.x,0,-1;", inst, ctx.attrib_name);
break;
default:
throw NotImplementedException("Get attribute {}", attr);