mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-18 03:31:31 +12:00
GLSL decompiler: Fall back for LITP
This commit is contained in:
parent
ca2d7e40ea
commit
0c2ae1b7d0
1 changed files with 5 additions and 2 deletions
|
@ -546,7 +546,10 @@ void ShaderDecompiler::compileInstruction(u32& pc, bool& finished) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default: Helpers::panic("GLSL recompiler: Unknown common opcode: %X", opcode); break;
|
default:
|
||||||
|
Helpers::warn("GLSL recompiler: Unknown common opcode: %02X. Falling back to CPU shaders", opcode);
|
||||||
|
compilationError = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else if (opcode >= 0x30 && opcode <= 0x3F) { // MAD and MADI
|
} else if (opcode >= 0x30 && opcode <= 0x3F) { // MAD and MADI
|
||||||
const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x1f];
|
const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x1f];
|
||||||
|
@ -717,7 +720,7 @@ void ShaderDecompiler::compileInstruction(u32& pc, bool& finished) {
|
||||||
case ShaderOpcodes::NOP: break;
|
case ShaderOpcodes::NOP: break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Helpers::warn("GLSL recompiler: Unknown opcode: %X. Falling back to CPU shaders", opcode);
|
Helpers::warn("GLSL recompiler: Unknown opcode: %02X. Falling back to CPU shaders", opcode);
|
||||||
compilationError = true;
|
compilationError = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue