class cf_node : public container_node {
protected:
- cf_node() : container_node(NT_OP, NST_CF_INST), bc(), jump_target(),
+ cf_node() : container_node(NT_OP, NST_CF_INST), jump_target(),
jump_after_target() {};
public:
bc_cf bc;
class alu_node : public node {
protected:
- alu_node() : node(NT_OP, NST_ALU_INST), bc() {};
+ alu_node() : node(NT_OP, NST_ALU_INST) {};
public:
bc_alu bc;
class fetch_node : public node {
protected:
- fetch_node() : node(NT_OP, NST_FETCH_INST), bc() {};
+ fetch_node() : node(NT_OP, NST_FETCH_INST) {};
public:
bc_fetch bc;
alu_node* shader::create_alu() {
alu_node* n = new (pool.allocate(sizeof(alu_node))) alu_node();
+ memset(&n->bc, 0, sizeof(bc_alu));
all_nodes.push_back(n);
return n;
}
cf_node* shader::create_cf() {
cf_node* n = new (pool.allocate(sizeof(cf_node))) cf_node();
+ memset(&n->bc, 0, sizeof(bc_cf));
n->bc.barrier = 1;
all_nodes.push_back(n);
return n;
fetch_node* shader::create_fetch() {
fetch_node* n = new (pool.allocate(sizeof(fetch_node))) fetch_node();
+ memset(&n->bc, 0, sizeof(bc_fetch));
all_nodes.push_back(n);
return n;
}