[Mesa-dev] [PATCH 00/15] Clean up shader attribute handling

Ian Romanick idr at freedesktop.org
Thu Sep 29 10:51:50 PDT 2011


This series is the first block of cleans and refactors from my idr-work branch
(note: the tail of that branch is kind of a mess right now).  This is working
towards a fairly significant refactor of the way shaders (GLSL and assembly)
are tracked and handled in Mesa.  The end goal is to remove as much of the
dependency on the particulars of the old Mesa IR as possible.

I'm breaking this up into several patch series so that people don't get review
overload.  Sending out a single 40 patch series is just mean.

The major thing to note in this series is that some code is move from C source
to C++ source.  This is done so that things like GetAttribLocation can use the
GLSL IR instead of the duplicated representation in the lower level IR.  More
of that will occur when the uniform changes come.

 src/glsl/linker.cpp                        |  138 ++++++++---------
 src/glsl/program.h                         |    3 +
 src/mesa/main/mtypes.h                     |   15 +-
 src/mesa/main/shader_query.cpp             |  234 ++++++++++++++++++++++++++++
 src/mesa/main/shaderapi.c                  |  145 +-----------------
 src/mesa/main/shaderapi.h                  |    4 +
 src/mesa/main/shaderobj.c                  |   13 +-
 src/mesa/program/hash_table.c              |   39 ++++-
 src/mesa/program/hash_table.h              |   20 +++
 src/mesa/program/ir_to_mesa.cpp            |   11 --
 src/mesa/program/prog_parameter.c          |   22 ---
 src/mesa/program/prog_parameter.h          |    4 -
 src/mesa/program/program.c                 |   10 --
 src/mesa/program/sampler.cpp               |   17 +--
 src/mesa/sources.mak                       |    3 +-
 src/mesa/state_tracker/st_glsl_to_tgsi.cpp |   14 --
 16 files changed, 381 insertions(+), 311 deletions(-)



More information about the mesa-dev mailing list