[Mesa-dev] [PATCH 0/9] intel/compiler: Do vec4 input remapping in NIR

Jason Ekstrand jason at jlekstrand.net
Fri May 5 02:11:38 UTC 2017


We've been doing input remapping in NIR for the FS back-end for some time
now but never bothered to port over vec4.  This little series does the same
thing for the vec4 back-end and makes a couple of other nice cleanups along
the way.

Jason Ekstrand (9):
  i965/nir: Inline remap_vs_attrs
  i965: Move multiply by 4 for VS ATTR setup into the scalar backend.
  i965/vs: Set uses_vertexid and friends from brw_compile_vs
  i965/fs: Lower gl_VertexID and friends to inputs at the NIR level
  intel/compiler/vs: Move inputs_read handling to generic code
  i965/vec4: Use NIR remapping for VS attributes
  i965/nir: Inline remap_inputs_with_vue_map
  i965/fs: Move remapping of gl_PointSize to the NIR level
  i965/vec4: Use NIR to do GS input remapping

 src/intel/compiler/brw_fs.h                |   1 -
 src/intel/compiler/brw_fs_nir.cpp          |  58 +--------
 src/intel/compiler/brw_fs_visitor.cpp      |  44 -------
 src/intel/compiler/brw_nir.c               | 184 ++++++++++++++++++++---------
 src/intel/compiler/brw_nir.h               |   2 +-
 src/intel/compiler/brw_vec4.cpp            | 122 +++++++------------
 src/intel/compiler/brw_vec4.h              |   2 -
 src/intel/compiler/brw_vec4_gs_nir.cpp     |  10 +-
 src/intel/compiler/brw_vec4_gs_visitor.cpp |  70 +++++++----
 src/intel/compiler/brw_vec4_gs_visitor.h   |   4 +-
 src/intel/compiler/brw_vec4_nir.cpp        |  49 +-------
 src/intel/compiler/brw_vec4_visitor.cpp    |   7 +-
 src/intel/compiler/brw_vec4_vs_visitor.cpp |  36 +-----
 src/intel/compiler/gen6_gs_visitor.cpp     |   4 +-
 src/intel/vulkan/anv_pipeline.c            |   3 -
 src/mesa/drivers/dri/i965/brw_vs.c         |   7 --
 16 files changed, 240 insertions(+), 363 deletions(-)

-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list