From 5f5c9a4cdd1c2df5d27f922635587c681462ed9c Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 6 Jan 2025 19:43:11 +0100 Subject: [PATCH] [d3d9] Improve logging for PS input register indices --- src/d3d9/d3d9_shader_validator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_shader_validator.cpp b/src/d3d9/d3d9_shader_validator.cpp index c1ca5c0adfb..9b317513909 100644 --- a/src/d3d9/d3d9_shader_validator.cpp +++ b/src/d3d9/d3d9_shader_validator.cpp @@ -93,12 +93,11 @@ namespace dxvk { DWORD regIndex = pdwInst[instNum] & D3DSP_REGNUM_MASK; if (unlikely(regType == static_cast(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, ".")); } } }