diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-12-25 02:45:07 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-12-25 02:45:07 +0100 |
commit | 37addf7a94009512c99bb67a0a488313411cc664 (patch) | |
tree | 87f221b8ef89e1d463a3c6887a2ead63159bdb87 /src/shader_recompiler | |
parent | Merge pull request #7623 from ameerj/unused-func (diff) | |
download | yuzu-37addf7a94009512c99bb67a0a488313411cc664.tar yuzu-37addf7a94009512c99bb67a0a488313411cc664.tar.gz yuzu-37addf7a94009512c99bb67a0a488313411cc664.tar.bz2 yuzu-37addf7a94009512c99bb67a0a488313411cc664.tar.lz yuzu-37addf7a94009512c99bb67a0a488313411cc664.tar.xz yuzu-37addf7a94009512c99bb67a0a488313411cc664.tar.zst yuzu-37addf7a94009512c99bb67a0a488313411cc664.zip |
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 8 |
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); |