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

Tim Rowley timothy.o.rowley at intel.com
Fri Jul 7 21:25:32 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

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

 src/gallium/drivers/swr/Makefile.am     | 24 +++++++++--------
 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 ++++++++++++++--------------
 13 files changed, 93 insertions(+), 84 deletions(-)

-- 
2.7.4



More information about the mesa-dev mailing list