mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Improve logging for PS input register indices
This commit is contained in:
parent
13affab550
commit
7e8f0706c0
1 changed files with 1 additions and 2 deletions
|
@ -93,12 +93,11 @@ namespace dxvk {
|
||||||
DWORD regIndex = pdwInst[instNum] & D3DSP_REGNUM_MASK;
|
DWORD regIndex = pdwInst[instNum] & D3DSP_REGNUM_MASK;
|
||||||
|
|
||||||
if (unlikely(regType == static_cast<DWORD>(DxsoRegisterType::Input) && regIndex >= 10)) {
|
if (unlikely(regType == static_cast<DWORD>(DxsoRegisterType::Input) && regIndex >= 10)) {
|
||||||
Logger::debug(str::format("IDirect3DShaderValidator9::Instruction: Found register index ", regIndex));
|
|
||||||
return ErrorCallback(pFile, Line, 0x2, pdwInst, cdw,
|
return ErrorCallback(pFile, Line, 0x2, pdwInst, cdw,
|
||||||
instContext.instruction.opcode == DxsoOpcode::Dcl ?
|
instContext.instruction.opcode == DxsoOpcode::Dcl ?
|
||||||
D3D9ShaderValidatorMessage::BadInputRegisterDeclaration :
|
D3D9ShaderValidatorMessage::BadInputRegisterDeclaration :
|
||||||
D3D9ShaderValidatorMessage::BadInputRegister,
|
D3D9ShaderValidatorMessage::BadInputRegister,
|
||||||
"IDirect3DShaderValidator9::Instruction: Invalid number of PS input registers specified. Aborting validation.");
|
str::format("IDirect3DShaderValidator9::Instruction: PS input registers index #", regIndex, " not valid for operand ", instNum, "."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue