D3D12 Shader Debug only call FillTraceLineInfo for DXBC debugging

DXIL debugging will generate the line info data during DXILDebug::BeginDebug()
This commit is contained in:
Jake Turner
2024-05-14 08:41:55 +01:00
parent 22ffd90382
commit fde1a19cb7
+6 -9
View File
@@ -1852,15 +1852,14 @@ ShaderDebugTrace *D3D12Replay::DebugVertex(uint32_t eventId, uint32_t vertid, ui
ret->inputs = state.inputs;
delete[] instData;
dxbc->FillTraceLineInfo(*ret);
}
else
{
RDCERR("TODO ADD DXIL VERTEX SHADER DEBUGGER SUPPORT");
}
if(ret)
dxbc->FillTraceLineInfo(*ret);
return ret;
}
@@ -2693,15 +2692,14 @@ void ExtractInputsPS(PSInput IN,
ret->constantBlocks = global.constantBlocks;
ret->inputs = state.inputs;
dxbc->FillTraceLineInfo(*ret);
}
else
{
RDCERR("TODO ADD DXIL PIXEL SHADER DEBUGGER SUPPORT");
}
if(ret)
dxbc->FillTraceLineInfo(*ret);
return ret;
}
@@ -2775,6 +2773,8 @@ ShaderDebugTrace *D3D12Replay::DebugThread(uint32_t eventId,
ret->constantBlocks = global.constantBlocks;
dxbc->FillTraceLineInfo(*ret);
// add fake inputs for semantics
for(size_t i = 0; i < dxbc->GetDXBCByteCode()->GetNumDeclarations(); i++)
{
@@ -2834,9 +2834,6 @@ ShaderDebugTrace *D3D12Replay::DebugThread(uint32_t eventId,
RDCERR("TODO ADD DXIL COMPUTE SHADER DEBUGGER SUPPORT");
}
if(ret)
dxbc->FillTraceLineInfo(*ret);
return ret;
}