DXIL Shader Debugger call FillTraceLine() for DXBC and DXIL debugging

Some lines of the disassembly output come from DXBC parsing and need to account for that in the trace line info
This commit is contained in:
Jake Turner
2024-06-10 17:10:01 +01:00
parent c49d688f13
commit 6cddf16263
+6 -6
View File
@@ -1852,14 +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;
}
@@ -2692,14 +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;
}
@@ -2773,8 +2773,6 @@ 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,6 +2832,8 @@ ShaderDebugTrace *D3D12Replay::DebugThread(uint32_t eventId,
RDCERR("TODO ADD DXIL COMPUTE SHADER DEBUGGER SUPPORT");
}
if(ret)
dxbc->FillTraceLineInfo(*ret);
return ret;
}