swr: build driver proper separate from rasterizer
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 29 Jun 2017 19:37:07 +0000 (14:37 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 11 Jul 2017 18:38:20 +0000 (13:38 -0500)
commitf50aa21456d82c8cb6fbaa565835f1acc1720a5d
tree1d646268c57b3c42bdeee271d3243964fc6e45ab
parent50cd222116b40e4df2462cb25a92960d557c9144
swr: build driver proper separate from rasterizer

swr used to build and link the rasterizer to the driver, and to support
multiple architectures we needed to have multiple versions of the
driver/rasterizer combination, which needed to link in much of mesa.

Changing to having one instance of the driver and just building
architecture specific versions of the rasterizer gives a large reduction
in disk space.

libGL.so        6464 Kb ->  7000 Kb
libswrAVX.so   10068 Kb ->  5432 Kb
libswrAVX2.so   9828 Kb ->  5200 Kb

Total          26360 Kb -> 17632 Kb

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