configure/swr: configurable swr architectures
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 7 Jul 2017 18:38:22 +0000 (13:38 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 19 Jul 2017 20:12:07 +0000 (15:12 -0500)
commitf42186b01dbc78357ace1bf47feb69696471b580
treee9ecf1895f7e77b10e97cb44b5b33579479cea3b
parent131b9f644cbe70728ba02878483e22459400bcb4
configure/swr: configurable swr architectures

Allow configuration of the SWR architecture depend libraries
we build for with --with-swr-archs.  Maintains current behavior
by defaulting to avx,avx2.

Scons changes made to make it still build and work, but
without the changes for configuring which architectures.

v2:
 * add missing comma for swr_archs default
 * check that at least one architecture is enabled
 * modify loader logic to make it clearer how to add archs

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac
src/gallium/drivers/swr/Makefile.am
src/gallium/drivers/swr/SConscript
src/gallium/drivers/swr/swr_loader.cpp