[Mesa-dev] [PATCH v2 0/2] swr: drastically reduce compiled size

Tim Rowley timothy.o.rowley at intel.com
Tue Jul 11 02:09:22 UTC 2017


These two patches allow us to change how we build and link the swr
driver; details are in the second patch commit message.

Change 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

v2:
  add scons changes for the new swr build setup
  reduce rules/flags and add comments to Makefile.am

Tim Rowley (2):
  swr: switch to using SwrGetInterface api table
  swr: build driver proper separate from rasterizer

 src/gallium/drivers/swr/Makefile.am     | 31 ++++++++++------------
 src/gallium/drivers/swr/SConscript      | 26 +++++++++----------
 src/gallium/drivers/swr/swr_clear.cpp   |  6 ++---
 src/gallium/drivers/swr/swr_context.cpp | 19 ++++++++------
 src/gallium/drivers/swr/swr_context.h   |  5 +++-
 src/gallium/drivers/swr/swr_draw.cpp    | 46 ++++++++++++++++-----------------
 src/gallium/drivers/swr/swr_fence.cpp   |  2 +-
 src/gallium/drivers/swr/swr_loader.cpp  | 14 +++++-----
 src/gallium/drivers/swr/swr_memory.h    |  6 ++---
 src/gallium/drivers/swr/swr_query.cpp   |  8 +++---
 src/gallium/drivers/swr/swr_scratch.cpp |  2 +-
 src/gallium/drivers/swr/swr_screen.cpp  |  3 ++-
 src/gallium/drivers/swr/swr_screen.h    |  2 ++
 src/gallium/drivers/swr/swr_state.cpp   | 40 ++++++++++++++--------------
 14 files changed, 107 insertions(+), 103 deletions(-)

-- 
2.7.4



More information about the mesa-dev mailing list