mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
parent
b4f2094c02
commit
724fe78ba1
@ -10,8 +10,13 @@ namespace dxvk {
|
||||
const DxsoInstructionContext& ctx) {
|
||||
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);
|
||||
}
|
||||
|
||||
if (opcode == DxsoOpcode::TexKill)
|
||||
m_analysis->usesKill = true;
|
||||
@ -41,6 +46,8 @@ namespace dxvk {
|
||||
//|| opcode == DxsoOpcode::TexLdl
|
||||
|| opcode == DxsoOpcode::TexDepth)
|
||||
m_analysis->usesDerivatives = true;
|
||||
|
||||
m_coissueCtx = ctx;
|
||||
}
|
||||
|
||||
void DxsoAnalyzer::finalize(size_t tokenCount) {
|
||||
|
@ -34,6 +34,8 @@ namespace dxvk {
|
||||
|
||||
DxsoAnalysisInfo* m_analysis = nullptr;
|
||||
|
||||
DxsoInstructionContext m_coissueCtx;
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user