intel/compiler: Pass backend_shader * to cfg_t()

As you can see, not having a pointer to the backend_shader from within
the class makes for some weird looking code.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4093>
This commit is contained in:
Matt Turner
2020-03-06 13:34:13 -08:00
committed by Marge Bot
parent edae75037f
commit e7d0460d58
7 changed files with 20 additions and 16 deletions

View File

@@ -1242,7 +1242,7 @@ backend_shader::calculate_cfg()
{
if (this->cfg)
return;
cfg = new(mem_ctx) cfg_t(&this->instructions);
cfg = new(mem_ctx) cfg_t(this, &this->instructions);
}
void