summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/translate
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-12 02:33:41 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:27 +0200
commit4b0172f6debf9ba595d5fd2d3e2329328513f5db (patch)
treef3d5b59ca7ebea9f1f5185020ce0cffd0d40a77e /src/shader_recompiler/frontend/maxwell/translate
parentshader: Stub ISBERD (diff)
downloadyuzu-4b0172f6debf9ba595d5fd2d3e2329328513f5db.tar
yuzu-4b0172f6debf9ba595d5fd2d3e2329328513f5db.tar.gz
yuzu-4b0172f6debf9ba595d5fd2d3e2329328513f5db.tar.bz2
yuzu-4b0172f6debf9ba595d5fd2d3e2329328513f5db.tar.lz
yuzu-4b0172f6debf9ba595d5fd2d3e2329328513f5db.tar.xz
yuzu-4b0172f6debf9ba595d5fd2d3e2329328513f5db.tar.zst
yuzu-4b0172f6debf9ba595d5fd2d3e2329328513f5db.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp
index 50650cc56..bc822d585 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp
@@ -115,6 +115,9 @@ enum class SpecialRegister : u64 {
switch (special_register) {
case SpecialRegister::SR_THREAD_KILL:
return IR::U32{ir.Select(ir.IsHelperInvocation(), ir.Imm32(-1), ir.Imm32(0))};
+ case SpecialRegister::SR_INVOCATION_INFO:
+ // LOG_WARNING(..., "SR_INVOCATION_INFO is stubbed");
+ return ir.Imm32(0x00ff'0000);
case SpecialRegister::SR_TID_X:
return ir.LocalInvocationIdX();
case SpecialRegister::SR_TID_Y:
@@ -128,10 +131,10 @@ enum class SpecialRegister : u64 {
case SpecialRegister::SR_CTAID_Z:
return ir.WorkgroupIdZ();
case SpecialRegister::SR_WSCALEFACTOR_XY:
- // LOG_WARNING(ShaderDecompiler, "SR_WSCALEFACTOR_XY (Stubbed)");
+ // LOG_WARNING(..., "SR_WSCALEFACTOR_XY is stubbed");
return ir.Imm32(Common::BitCast<u32>(1.0f));
case SpecialRegister::SR_WSCALEFACTOR_Z:
- // LOG_WARNING(ShaderDecompiler, "SR_WSCALEFACTOR_Z (Stubbed)");
+ // LOG_WARNING(..., "SR_WSCALEFACTOR_Z is stubbed");
return ir.Imm32(Common::BitCast<u32>(1.0f));
case SpecialRegister::SR_LANEID:
return ir.LaneId();