[Mesa-dev] [PATCH 00/12] Introduce libi965_compiler.la

Kristian Høgsberg Kristensen krh at bitplanet.net
Wed Oct 7 07:11:40 PDT 2015


This series introduces a new libtool convenience library,
libi965_compiler.la.  Most of the series is concerned with moving bits
of code around to allow for splitting the compiler files in the
second-to-last patch.

The end result is still not completely ideal - we still have a bunch
of brw_context references in there, INTEL_DEUBG is defined in the
compiler library and other oddities.  However, the split lets us link
the compiler unit tests to just libi965_compiler.la and drop a few
dependencies there and of course, lets us use the compiler in other
projects more easily.

Kristian Høgsberg Kristensen (12):
  i965: Move brw_dump_ir() out of brw_*_emit() functions
  util: Move DRI parse_debug_string() to util
  i965: Configure bufmgr debug options from intel_screen.c
  i965: Move brw_link_shader() and friends to new file brw_link.cpp
  i965/cs: Split out helper for building local id payload
  i965: Move brw_mark_surface_used() to brw_shader.cpp
  i965: Use util_next_power_of_two() for brw_get_scratch_size()
  i965: Move brw_select_clip_planes() to brw_shader.cpp
  i965: Move brw_get_shader_time_index() call out of emit functions
  i965/cs: Get max_cs_threads from brw_compiler devinfo
  i965: Break out backend compiler to its own library
  i965: Link compiler unit tests to libi965_compiler.la

 src/mesa/drivers/dri/i965/Makefile.am             |  14 +-
 src/mesa/drivers/dri/i965/Makefile.sources        | 151 ++++++------
 src/mesa/drivers/dri/i965/brw_context.h           |   8 +-
 src/mesa/drivers/dri/i965/brw_cs.c                |   9 +-
 src/mesa/drivers/dri/i965/brw_cs.h                |   6 +-
 src/mesa/drivers/dri/i965/brw_fs.cpp              |  98 +++++---
 src/mesa/drivers/dri/i965/brw_gs.c                |   9 +-
 src/mesa/drivers/dri/i965/brw_link.cpp            | 280 ++++++++++++++++++++++
 src/mesa/drivers/dri/i965/brw_program.c           |  22 --
 src/mesa/drivers/dri/i965/brw_shader.cpp          | 278 +++------------------
 src/mesa/drivers/dri/i965/brw_shader.h            |   2 +
 src/mesa/drivers/dri/i965/brw_vec4.cpp            |  12 +-
 src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp |   8 +-
 src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h   |   1 +
 src/mesa/drivers/dri/i965/brw_vs.c                |  34 +--
 src/mesa/drivers/dri/i965/brw_vs.h                |   1 +
 src/mesa/drivers/dri/i965/brw_wm.c                |  11 +-
 src/mesa/drivers/dri/i965/brw_wm.h                |   1 +
 src/mesa/drivers/dri/i965/gen7_cs_state.c         |  80 +------
 src/mesa/drivers/dri/i965/intel_debug.c           |  19 +-
 src/mesa/drivers/dri/i965/intel_debug.h           |   4 +-
 src/mesa/drivers/dri/i965/intel_screen.c          |  14 +-
 src/util/Makefile.sources                         |   2 +
 src/util/debug.c                                  |  53 ++++
 src/util/debug.h                                  |  47 ++++
 25 files changed, 645 insertions(+), 519 deletions(-)
 create mode 100644 src/mesa/drivers/dri/i965/brw_link.cpp
 create mode 100644 src/util/debug.c
 create mode 100644 src/util/debug.h

-- 
2.4.3



More information about the mesa-dev mailing list