Re: [Mesa-dev] [PATCH 2/4] i965: Add a copy constructor (of sorts) for cfg_t.

2018-02-23 Thread Francisco Jerez
Kenneth Graunke writes: > This clones an existing CFG. > > We can't properly copy the instruction lists from cfg_t itself, as > it's fs_inst/vec4_instruction agnostic, and we don't use templates. > To accomplish this, we pass in an instruction-list-copying function. > ---

[Mesa-dev] [PATCH 2/4] i965: Add a copy constructor (of sorts) for cfg_t.

2018-02-23 Thread Kenneth Graunke
This clones an existing CFG. We can't properly copy the instruction lists from cfg_t itself, as it's fs_inst/vec4_instruction agnostic, and we don't use templates. To accomplish this, we pass in an instruction-list-copying function. --- src/intel/compiler/brw_cfg.cpp | 41