diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-21 02:56:40 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:33 +0200 |
commit | 3da7b98d376cc0b8ec00de80755d9e90fc90e3a8 (patch) | |
tree | 093b8255388eeff1da65094d435830e2d06a6c38 /src | |
parent | glasm: Implement clip distance stores (diff) | |
download | yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.tar yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.tar.gz yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.tar.bz2 yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.tar.lz yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.tar.xz yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.tar.zst yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 3 |
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 b64025420..116b42361 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 @@ -70,6 +70,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, Scal return; } switch (attr) { + case IR::Attribute::PrimitiveId: + ctx.Add("MOV.S {}.x,primitive.id;", inst); + break; case IR::Attribute::PositionX: case IR::Attribute::PositionY: case IR::Attribute::PositionZ: |