[Mesa-dev] [PATCH 0/3] Move libdrm dependencies out of backend compiler

Kristian Høgsberg Kristensen krh at bitplanet.net
Wed Sep 9 10:44:10 PDT 2015


In trying to separate the backend compiler from the core driver, I ran
into a couple of inconsistencies with how the compute shader code is
split across files. First patch moves code around to follow our
convention. The last two patches moves fs precompile and perf debug
around to move libdrm dependencies out of the compiler.

Kristian Høgsberg Kristensen (3):
  i965: Move compute shader code around
  i965: Move brw_fs_precompile() to brw_wm.c
  i965: Move perf_debug code to brw_codegen_*_prog()

 src/mesa/drivers/dri/i965/Makefile.sources |   3 +-
 src/mesa/drivers/dri/i965/brw_cs.c         | 206 +++++++++++
 src/mesa/drivers/dri/i965/brw_cs.cpp       | 535 -----------------------------
 src/mesa/drivers/dri/i965/brw_cs.h         |   9 +
 src/mesa/drivers/dri/i965/brw_fs.cpp       | 132 +++----
 src/mesa/drivers/dri/i965/brw_vec4.cpp     |  19 -
 src/mesa/drivers/dri/i965/brw_vs.c         |  29 +-
 src/mesa/drivers/dri/i965/brw_wm.c         |  90 ++++-
 src/mesa/drivers/dri/i965/gen7_cs_state.c  | 269 +++++++++++++++
 9 files changed, 664 insertions(+), 628 deletions(-)
 create mode 100644 src/mesa/drivers/dri/i965/brw_cs.c
 delete mode 100644 src/mesa/drivers/dri/i965/brw_cs.cpp
 create mode 100644 src/mesa/drivers/dri/i965/gen7_cs_state.c

-- 
2.5.1



More information about the mesa-dev mailing list