mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
parent
b4f2094c02
commit
724fe78ba1
@ -10,8 +10,13 @@ namespace dxvk {
|
|||||||
const DxsoInstructionContext& ctx) {
|
const DxsoInstructionContext& ctx) {
|
||||||
DxsoOpcode opcode = ctx.instruction.opcode;
|
DxsoOpcode opcode = ctx.instruction.opcode;
|
||||||
|
|
||||||
if (opcode == DxsoOpcode::Cnd && ctx.instruction.coissue)
|
// 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 &&
|
||||||
|
ctx.instruction.coissue) {
|
||||||
m_analysis->coissues.push_back(ctx);
|
m_analysis->coissues.push_back(ctx);
|
||||||
|
}
|
||||||
|
|
||||||
if (opcode == DxsoOpcode::TexKill)
|
if (opcode == DxsoOpcode::TexKill)
|
||||||
m_analysis->usesKill = true;
|
m_analysis->usesKill = true;
|
||||||
@ -41,6 +46,8 @@ namespace dxvk {
|
|||||||
//|| opcode == DxsoOpcode::TexLdl
|
//|| opcode == DxsoOpcode::TexLdl
|
||||||
|| opcode == DxsoOpcode::TexDepth)
|
|| opcode == DxsoOpcode::TexDepth)
|
||||||
m_analysis->usesDerivatives = true;
|
m_analysis->usesDerivatives = true;
|
||||||
|
|
||||||
|
m_coissueCtx = ctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DxsoAnalyzer::finalize(size_t tokenCount) {
|
void DxsoAnalyzer::finalize(size_t tokenCount) {
|
||||||
|
@ -34,6 +34,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
DxsoAnalysisInfo* m_analysis = nullptr;
|
DxsoAnalysisInfo* m_analysis = nullptr;
|
||||||
|
|
||||||
|
DxsoInstructionContext m_coissueCtx;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user