summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/maxwell
diff options
context:
space:
mode:
authorGravatar FernandoS272021-04-16 23:52:58 +0200
committerGravatar ameerj2021-07-22 21:51:28 -0400
commitf18a6dd1bdaffda4c3e771af3cf7cf41919ebd67 (patch)
treeffd531d2a81f9e48369c7f362e11e224f437fd5c /src/shader_recompiler/frontend/maxwell
parentshader: Fix Phi node types (diff)
downloadyuzu-f18a6dd1bdaffda4c3e771af3cf7cf41919ebd67.tar.gz
yuzu-f18a6dd1bdaffda4c3e771af3cf7cf41919ebd67.tar.xz
yuzu-f18a6dd1bdaffda4c3e771af3cf7cf41919ebd67.zip
shader: Implement SR_Y_DIRECTION
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp2
1 files changed, 2 insertions, 0 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 660b84c20..b0baff74b 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
@@ -150,6 +150,8 @@ enum class SpecialRegister : u64 {
150 return ir.SubgroupGtMask(); 150 return ir.SubgroupGtMask();
151 case SpecialRegister::SR_GEMASK: 151 case SpecialRegister::SR_GEMASK:
152 return ir.SubgroupGeMask(); 152 return ir.SubgroupGeMask();
153 case SpecialRegister::SR_Y_DIRECTION:
154 return ir.BitCast<IR::U32>(ir.YDirection());
153 default: 155 default:
154 throw NotImplementedException("S2R special register {}", special_register); 156 throw NotImplementedException("S2R special register {}", special_register);
155 } 157 }