Skip to content

Commit

Permalink
JAKE HACKS REMOVE SSA LIFETIME ASSERTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Dec 4, 2024
1 parent f75fcef commit 6293a19
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions renderdoc/driver/shaders/dxil/dxil_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4474,7 +4474,7 @@ bool ThreadState::GetShaderVariableHelper(const DXIL::Value *dxilValue, DXIL::Op

bool ThreadState::GetLiveVariable(const Id &id, Operation op, DXOp dxOpCode, ShaderVariable &var) const
{
RDCASSERT(m_Live.contains(id));
// RDCASSERT(m_Live.contains(id));
auto it = m_Variables.find(id);
RDCASSERT(it != m_Variables.end());
var = it->second;
Expand Down Expand Up @@ -6390,7 +6390,7 @@ ShaderDebugTrace *Debugger::BeginDebug(uint32_t eventId, const DXBC::DXBCContain
ssaRefs.insert(resultId);

// The result SSA should not have any range tracking
RDCASSERTEQUAL(ssaRange.count(resultId), 0);
// RDCASSERTEQUAL(ssaRange.count(resultId), 0);
// For assignment track maximum and minimum (as current instruction plus one)
ssaRange[resultId] = {i + 1, maxInst};
}
Expand All @@ -6414,7 +6414,7 @@ ShaderDebugTrace *Debugger::BeginDebug(uint32_t eventId, const DXBC::DXBCContain
}
}
// For non phi-nodes the argument SSA should already exist as the result of a previous operation
RDCASSERTEQUAL(ssaRefs.count(argId), 1);
// RDCASSERTEQUAL(ssaRefs.count(argId), 1);
// The result SSA should not have any range tracking
auto itRange = ssaRange.find(argId);
if(itRange != ssaRange.end())
Expand All @@ -6424,7 +6424,8 @@ ShaderDebugTrace *Debugger::BeginDebug(uint32_t eventId, const DXBC::DXBCContain
}
else
{
RDCERR("SSA Id range not found %d", argId);
// RDCERR("SSA Id range not found %d", argId);
RDCLOG("SSA Id range not found %d", argId);
}
}
}
Expand Down

0 comments on commit 6293a19

Please sign in to comment.