i965: Remove useless IR self-destruct backend_shader method.
From the point it's constructed the CFG contains the only existing copy of the program IR, and it never becomes invalid. Calling backend_shader::invalidate_cfg would have destroyed the program structure irrecoverably -- We weren't calling it at all for a good reason. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
8c7acd87af
commit
63250d8178
|
@ -1046,13 +1046,6 @@ backend_shader::calculate_cfg()
|
|||
cfg = new(mem_ctx) cfg_t(&this->instructions);
|
||||
}
|
||||
|
||||
void
|
||||
backend_shader::invalidate_cfg()
|
||||
{
|
||||
ralloc_free(this->cfg);
|
||||
this->cfg = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the starting offsets for the groups of binding table entries
|
||||
* commong to all pipeline stages.
|
||||
|
|
|
@ -217,7 +217,6 @@ public:
|
|||
virtual void dump_instructions(const char *name);
|
||||
|
||||
void calculate_cfg();
|
||||
void invalidate_cfg();
|
||||
|
||||
virtual void invalidate_live_intervals() = 0;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue