Skip to content

Commit

Permalink
[d3d9] Improve logging for PS input register indices
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin committed Jan 13, 2025
1 parent af45295 commit 5f5c9a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/d3d9/d3d9_shader_validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,11 @@ namespace dxvk {
DWORD regIndex = pdwInst[instNum] & D3DSP_REGNUM_MASK;

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,
instContext.instruction.opcode == DxsoOpcode::Dcl ?
D3D9ShaderValidatorMessage::BadInputRegisterDeclaration :
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, "."));
}
}
}
Expand Down

0 comments on commit 5f5c9a4

Please sign in to comment.