diff options
author | Vadim Girlin <[email protected]> | 2013-04-30 21:01:10 +0400 |
---|---|---|
committer | Vadim Girlin <[email protected]> | 2013-04-30 21:50:48 +0400 |
commit | fb1eed9ec5d9ef341003c3d2f78f30979c50090d (patch) | |
tree | 15f68d67e3d53185cc7a56f09afe24f48eb6a102 /src/gallium/drivers/r600/sb | |
parent | 3f18dd818f7ce0adab0afe1a4b4db2e242513086 (diff) |
r600g/sb: remove unused code
Signed-off-by: Vadim Girlin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/sb')
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_shader.cpp | 30 | ||||
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_shader.h | 4 |
2 files changed, 0 insertions, 34 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_shader.cpp b/src/gallium/drivers/r600/sb/sb_shader.cpp index a59f8a35525..6dd3678e66a 100644 --- a/src/gallium/drivers/r600/sb/sb_shader.cpp +++ b/src/gallium/drivers/r600/sb/sb_shader.cpp @@ -238,26 +238,7 @@ void shader::set_undef(val_set& s) { v->gvn_source = undefined->gvn_source; } } -/* -void shader::transfer_pins(vvec& vv, vvec &sv) { - vvec::iterator SI = sv.begin(); - for (vvec::iterator I = vv.begin(), E = vv.end(); I != E; ++I, ++SI) { - value *v = *I; - value *sv = *SI; - - v->pin_gpr = sv->pin_gpr; - if (sv->is_chan_pinned()) { - v->flags |= VLF_PIN_CHAN; - sv->flags &= ~VLF_PIN_CHAN; - } - if (sv->is_reg_pinned()) { - v->flags |= VLF_PIN_REG; - sv->flags &= ~VLF_PIN_REG; - } - } -} -*/ value* shader::create_value(value_kind k, sel_chan regid, unsigned ver) { value *v = val_pool.create(k, regid, ver); return v; @@ -351,18 +332,7 @@ bb_node* shader::create_bb(unsigned id, unsigned loop_level) { all_nodes.push_back(n); return n; } -/* -void shader::prepare_regs(unsigned cnt) { - assert(!prep_regs_count); - for (unsigned i = 0; i < cnt*4; ++i) { - value *v = create_value(VLK_REG, i + 1, 0); - assert (v->uid == i + 1); - } - - prep_regs_count = cnt; -} -*/ value* shader::get_special_ro_value(unsigned sel) { return get_ro_value(special_ro_values, VLK_PARAM, sel); } diff --git a/src/gallium/drivers/r600/sb/sb_shader.h b/src/gallium/drivers/r600/sb/sb_shader.h index bc6e582c09b..aa71d542aad 100644 --- a/src/gallium/drivers/r600/sb/sb_shader.h +++ b/src/gallium/drivers/r600/sb/sb_shader.h @@ -339,8 +339,6 @@ public: value *get_undef_value(); void set_undef(val_set &s); - void transfer_pins(vvec& vv, vvec &sv); - node* create_node(node_type nt, node_subtype nst, node_flags flags = NF_EMPTY); alu_node* create_alu(); @@ -358,8 +356,6 @@ public: if_node* create_if(); bb_node* create_bb(unsigned id, unsigned loop_level); - void prepare_regs(unsigned cnt); - value* get_value_by_uid(unsigned id) { return val_pool[id - 1]; } cf_node* create_clause(node_subtype nst); |