PValue m_last_addr;
int m_loop_nesting;
int m_nliterals_in_group;
+ std::set<int> vtx_fetch_results;
};
bool AssemblyFromShaderLegacyImpl::emit(const Instruction::Pointer i)
{
+ if (i->type() != Instruction::vtx)
+ vtx_fetch_results.clear();
+
sfn_log << SfnLog::assembly << "Emit from '" << *i << "\n";
switch (i->type()) {
case Instruction::alu:
}
}
+ if (vtx_fetch_results.find(fetch_instr.src().sel()) !=
+ vtx_fetch_results.end()) {
+ m_bc->force_add_cf = 1;
+ vtx_fetch_results.clear();
+ }
+ vtx_fetch_results.insert(fetch_instr.dst().sel());
+
struct r600_bytecode_vtx vtx;
memset(&vtx, 0, sizeof(vtx));
vtx.op = fetch_instr.vc_opcode();