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:
@@ -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
|
||||
|
Reference in New Issue
Block a user