Skip to content

Commit

Permalink
WinPIX: Shader debug should use UAV 0 always (microsoft#5315)
Browse files Browse the repository at this point in the history
Recent small regression: the WinPIX shader debug pass should always
write to UAV 0 (that's the only one that's correctly setup by WinPIX).
  • Loading branch information
jeffnn authored Jun 23, 2023
1 parent 3dc858f commit d278bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DxilPIXPasses/DxilDebugInstrumentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ bool DxilDebugInstrumentation::RunOnFunction(
auto &values = m_FunctionToValues[BC.Builder.GetInsertBlock()->getParent()];

values.UAVHandle = PIXPassHelpers::CreateUAV(
DM, Builder, static_cast<unsigned int>(m_FunctionToValues.size()),
DM, Builder, 0,
"PIX_DebugUAV_Handle");
values.CounterOffset = BC.HlslOP->GetU32Const(UAVDumpingGroundOffset() + CounterOffsetBeyondUsefulData);

Expand Down

0 comments on commit d278bbe

Please sign in to comment.