i965: Use NIR for lowering texture swizzle
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 12 Nov 2015 02:41:37 +0000 (18:41 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Nov 2015 19:07:32 +0000 (11:07 -0800)
commitd9b8fde963a53d4e06570d8bece97f806714507a
treeed7e685f19282fa8bd3a82ebfae593bf40c5663f
parent8537b4ab762ec4249acf23164e0e5a943d2d05af
i965: Use NIR for lowering texture swizzle

Now that nir_lower_tex can do texture swizzle lowering, we can use that
instead of repeating more-or-less the same code in both backends.  This
both allows us to share code and means that things like the tg4
work-arounds are somewhat simpler because they don't have to take the
swizzle into account.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp