Re: [Mesa-dev] [PATCH 1/3] i965/fs: Add and use get_nir_src_imm().

2016-05-04 Thread Kenneth Graunke
On Wednesday, May 4, 2016 3:54:12 PM PDT Matt Turner wrote: > Terrible name. Suggest something else, or even a better way to do this. > > Basically, the next patch wants to inspect the LOD argument and do > something different if it's 0.0f. But at that point we've emitted a MOV > for it and we jus

[Mesa-dev] [PATCH 1/3] i965/fs: Add and use get_nir_src_imm().

2016-05-04 Thread Matt Turner
Terrible name. Suggest something else, or even a better way to do this. Basically, the next patch wants to inspect the LOD argument and do something different if it's 0.0f. But at that point we've emitted a MOV for it and we just have a register to look at. --- This is an alternative approach to t