<p dir="ltr"><br>
On Nov 14, 2015 6:40 PM, "Connor Abbott" <<a href="mailto:cwabbott0@gmail.com">cwabbott0@gmail.com</a>> wrote:<br>
><br>
> Series is<br>
><br>
> Reviewed-by: Connor Abbott <<a href="mailto:cwabbott0@gmail.com">cwabbott0@gmail.com</a>></p>
<p dir="ltr">Thanks! I'll make sure to have ken or matt take a quick look at the last one.</p>
<p dir="ltr">Now, if only someone would review the nir_shader_clone patch...</p>
<p dir="ltr">> Although I'm not as familiar now with the code touched in the last patch.<br>
><br>
> On Thu, Nov 12, 2015 at 3:13 PM, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> > The subject says it all. This little series adds texture swizzle support<br>
> > to nir_lower_tex and makes the i965 driver use that instead of its own<br>
> > code. This approach has a few advantages:<br>
> ><br>
> > 1) It lets us share the swizzling code between both backends and with<br>
> > anyone else who wants it.<br>
> ><br>
> > 2) It simplifies the work-arounds we have to do for RG32F textures because<br>
> > everything is pre-swizzled by the time the backend sees it.<br>
> ><br>
> > 3) If someone wants to come along and implement texture write-masking in<br>
> > the FS backend, they'll have an easier time of it. One of my<br>
> > approaches to doing so was substantially complicated by the fact that,<br>
> > thanks to the swizzle, the channels used that we can see from NIR don't<br>
> > apply to the actual texturing instruction. Now that the swizzling is<br>
> > done in NIR, this should be substantially simpler.<br>
> ><br>
> > Jason Ekstrand (6):<br>
> > nir/validate: Validated dests after sources<br>
> > nir: Use instr/if_rewrite in nir_ssa_def_rewrite_uses<br>
> > nir: Add a ssa_def_rewrite_uses_after helper<br>
> > nir: Add a tex_instr_is_query helper<br>
> > nir/lower_tex: Add support for lowering texture swizzle<br>
> > i965: Use NIR for lowering texture swizzle<br>
> ><br>
> > src/glsl/nir/nir.c | 63 ++++++++++++---<br>
> > src/glsl/nir/nir.h | 40 ++++++++++<br>
> > src/glsl/nir/nir_lower_tex.c | 67 ++++++++++++++++<br>
> > src/glsl/nir/nir_validate.c | 18 ++---<br>
> > src/mesa/drivers/dri/i965/brw_fs.h | 4 -<br>
> > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 105 ++++---------------------<br>
> > src/mesa/drivers/dri/i965/brw_nir.c | 14 +++-<br>
> > src/mesa/drivers/dri/i965/brw_vec4.h | 4 -<br>
> > src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 24 +++---<br>
> > src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 93 ++--------------------<br>
> > 10 files changed, 215 insertions(+), 217 deletions(-)<br>
> ><br>
> > --<br>
> > 2.5.0.400.gff86faf<br>
> ><br>
> > _______________________________________________<br>
> > mesa-dev mailing list<br>
> > <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> > <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</p>