[Mesa-dev] [PATCH 00/10] i965, anv: Stop linking the Vulkan driver to libmesa

Jason Ekstrand jason at jlekstrand.net
Thu May 26 01:52:16 UTC 2016


This little series reworks the build a bit so that we can stop linking the
Vulkan driver to libmesa.  This lets us substantially cut down on the size
of the final binary.  The whole series can be found in a branch here:

https://cgit.freedesktop.org/~jekstrand/mesa/log/?h=wip/anv-no-libmesa

Cc: Emil Velikov <emil.velikov at collabora.com>

Jason Ekstrand (10):
  compiler: Move glsl_to_nir to libglsl.la
  ptn: Include nir.h
  i965/nir: Move the type_size_*_bytes functions to brw_nir.h
  i965: Move brw_create_nir to brw_program.c
  i965: Move brw_nir_lower_uniforms.cpp to i965_FILES
  i965: Move brw_new_shader to brw_link.cpp
  i965/test: Remove the fragment/vertex_program field from test visitors
  i965: Move compiler debug functions to intel_screen.c
  i965: Don't link libmesa or libdri_test_stubs into tests
  anv: Stop linking against libmesa.la and libdri_test_stubs.la

 src/compiler/Makefile.am                           |    2 +
 src/compiler/Makefile.nir.am                       |    5 -
 src/compiler/Makefile.sources                      |    4 +-
 src/compiler/glsl/glsl_to_nir.cpp                  | 2026 ++++++++++++++++++++
 src/compiler/glsl/glsl_to_nir.h                    |   42 +
 src/compiler/nir/glsl_to_nir.cpp                   | 2026 --------------------
 src/compiler/nir/glsl_to_nir.h                     |   42 -
 src/intel/vulkan/Makefile.am                       |    6 +-
 src/mesa/drivers/dri/i965/Makefile.am              |    6 +-
 src/mesa/drivers/dri/i965/Makefile.sources         |    2 +-
 src/mesa/drivers/dri/i965/brw_compiler.c           |   42 -
 src/mesa/drivers/dri/i965/brw_link.cpp             |   17 +
 src/mesa/drivers/dri/i965/brw_nir.c                |   82 -
 src/mesa/drivers/dri/i965/brw_nir.h                |   19 +-
 src/mesa/drivers/dri/i965/brw_program.c            |   68 +
 src/mesa/drivers/dri/i965/brw_program.h            |    6 +
 src/mesa/drivers/dri/i965/brw_shader.cpp           |   17 -
 src/mesa/drivers/dri/i965/intel_screen.c           |   42 +
 .../drivers/dri/i965/test_fs_cmod_propagation.cpp  |    4 -
 .../dri/i965/test_fs_saturate_propagation.cpp      |    4 -
 .../dri/i965/test_vec4_cmod_propagation.cpp        |    5 -
 .../dri/i965/test_vec4_copy_propagation.cpp        |    5 -
 .../dri/i965/test_vec4_register_coalesce.cpp       |    5 -
 src/mesa/program/prog_to_nir.h                     |    3 +
 src/mesa/state_tracker/st_glsl_to_nir.cpp          |    2 +-
 25 files changed, 2229 insertions(+), 2253 deletions(-)
 create mode 100644 src/compiler/glsl/glsl_to_nir.cpp
 create mode 100644 src/compiler/glsl/glsl_to_nir.h
 delete mode 100644 src/compiler/nir/glsl_to_nir.cpp
 delete mode 100644 src/compiler/nir/glsl_to_nir.h

-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list