Commit e0b83b13 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[dxso] Only track co-issue parent opcode rather than the full context

Tracking the full instruction ctx is slow and unnecessary
parent 724fe78b
Pipeline #978 passed with stage
in 4 minutes and 6 seconds
......@@ -13,7 +13,7 @@ namespace dxvk {
// Co-issued CNDs are issued before their parents,
// except when the parent is a CND.
if (opcode == DxsoOpcode::Cnd &&
m_coissueCtx.instruction.opcode != DxsoOpcode::Cnd &&
m_parentOpcode != DxsoOpcode::Cnd &&
ctx.instruction.coissue) {
m_analysis->coissues.push_back(ctx);
}
......@@ -47,7 +47,7 @@ namespace dxvk {
|| opcode == DxsoOpcode::TexDepth)
m_analysis->usesDerivatives = true;
m_coissueCtx = ctx;
m_parentOpcode = ctx.instruction.opcode;
}
void DxsoAnalyzer::finalize(size_t tokenCount) {
......
......@@ -34,7 +34,7 @@ namespace dxvk {
DxsoAnalysisInfo* m_analysis = nullptr;
DxsoInstructionContext m_coissueCtx;
DxsoOpcode m_parentOpcode;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment