[Mesa-dev] [PATCH] nir/lower_vec_to_movs: Better report channels handled by insert_mov

2016-02-10 Thread Jason Ekstrand
This fixes two issues. First, we had a use-after-free in the case where the instruction got deleted and we tried to return mov->dest.write_mask. Second, in the case where we are doing a self-mov of a register, we delete those channels that are moved to themselves from the write-mask. This means

Re: [Mesa-dev] [PATCH] nir/lower_vec_to_movs: Better report channels handled by insert_mov

2016-02-10 Thread Jason Ekstrand
On Wed, Feb 10, 2016 at 1:47 PM, Matt Turner wrote: > On Wed, Feb 10, 2016 at 1:27 PM, Jason Ekstrand > wrote: > > This fixes two issues. First, we had a use-after-free in the case where > > the instruction got deleted and we tried to return

Re: [Mesa-dev] [PATCH] nir/lower_vec_to_movs: Better report channels handled by insert_mov

2016-02-10 Thread Matt Turner
On Wed, Feb 10, 2016 at 1:27 PM, Jason Ekstrand wrote: > This fixes two issues. First, we had a use-after-free in the case where > the instruction got deleted and we tried to return mov->dest.write_mask. > Second, in the case where we are doing a self-mov of a register, we