summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-04-01 07:52:36 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commit5ed8f2438498d3281c2ce8621869995de3908413 (patch)
treebe8c944e46c0ce84def6e38cee63324915ac83a4 /src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp
parentshader: Fold composite extract (diff)
downloadyuzu-5ed8f2438498d3281c2ce8621869995de3908413.tar
yuzu-5ed8f2438498d3281c2ce8621869995de3908413.tar.gz
yuzu-5ed8f2438498d3281c2ce8621869995de3908413.tar.bz2
yuzu-5ed8f2438498d3281c2ce8621869995de3908413.tar.lz
yuzu-5ed8f2438498d3281c2ce8621869995de3908413.tar.xz
yuzu-5ed8f2438498d3281c2ce8621869995de3908413.tar.zst
yuzu-5ed8f2438498d3281c2ce8621869995de3908413.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/move_special_register.cpp4
1 files changed, 4 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 93cea302a..a295f4c5e 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
@@ -95,6 +95,10 @@ enum class SpecialRegister : u64 {
return ir.WorkgroupIdY();
case SpecialRegister::SR_CTAID_Z:
return ir.WorkgroupIdZ();
+ case SpecialRegister::SR_WSCALEFACTOR_XY:
+ return ir.Imm32(Common::BitCast<u32>(1.0f));
+ case SpecialRegister::SR_WSCALEFACTOR_Z:
+ return ir.Imm32(Common::BitCast<u32>(1.0f));
default:
throw NotImplementedException("S2R special register {}", special_register);
}