mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-24 05:55:43 +01:00
shader: Stub SR_INVOCATION_INFO
This commit is contained in:
parent
f712084147
commit
4b0172f6de
@ -115,6 +115,9 @@ enum class SpecialRegister : u64 {
|
|||||||
switch (special_register) {
|
switch (special_register) {
|
||||||
case SpecialRegister::SR_THREAD_KILL:
|
case SpecialRegister::SR_THREAD_KILL:
|
||||||
return IR::U32{ir.Select(ir.IsHelperInvocation(), ir.Imm32(-1), ir.Imm32(0))};
|
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:
|
case SpecialRegister::SR_TID_X:
|
||||||
return ir.LocalInvocationIdX();
|
return ir.LocalInvocationIdX();
|
||||||
case SpecialRegister::SR_TID_Y:
|
case SpecialRegister::SR_TID_Y:
|
||||||
@ -128,10 +131,10 @@ enum class SpecialRegister : u64 {
|
|||||||
case SpecialRegister::SR_CTAID_Z:
|
case SpecialRegister::SR_CTAID_Z:
|
||||||
return ir.WorkgroupIdZ();
|
return ir.WorkgroupIdZ();
|
||||||
case SpecialRegister::SR_WSCALEFACTOR_XY:
|
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));
|
return ir.Imm32(Common::BitCast<u32>(1.0f));
|
||||||
case SpecialRegister::SR_WSCALEFACTOR_Z:
|
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));
|
return ir.Imm32(Common::BitCast<u32>(1.0f));
|
||||||
case SpecialRegister::SR_LANEID:
|
case SpecialRegister::SR_LANEID:
|
||||||
return ir.LaneId();
|
return ir.LaneId();
|
||||||
|
Loading…
Reference in New Issue
Block a user