Forráskód Böngészése

shader/other: Add error message for some S2R registers

ReinUsesLisp 6 éve
szülő
commit
60106531b4
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      src/video_core/shader/decode/other.cpp

+ 6 - 0
src/video_core/shader/decode/other.cpp

@@ -79,6 +79,12 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) {
             case SystemVariable::InvocationInfo:
             case SystemVariable::InvocationInfo:
                 LOG_WARNING(HW_GPU, "S2R instruction with InvocationInfo is incomplete");
                 LOG_WARNING(HW_GPU, "S2R instruction with InvocationInfo is incomplete");
                 return Immediate(0U);
                 return Immediate(0U);
+            case SystemVariable::WscaleFactorXY:
+                UNIMPLEMENTED_MSG("S2R WscaleFactorXY is not implemented");
+                return Immediate(0U);
+            case SystemVariable::WscaleFactorZ:
+                UNIMPLEMENTED_MSG("S2R WscaleFactorZ is not implemented");
+                return Immediate(0U);
             case SystemVariable::Tid: {
             case SystemVariable::Tid: {
                 Node value = Immediate(0);
                 Node value = Immediate(0);
                 value = BitfieldInsert(value, Operation(OperationCode::LocalInvocationIdX), 0, 9);
                 value = BitfieldInsert(value, Operation(OperationCode::LocalInvocationIdX), 0, 9);