summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/uniform_query.cpp
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2014-03-13 12:48:27 +0200
committerTapani Pälli <[email protected]>2014-06-16 06:49:59 +0300
commitdd2a6519b919395cfb57e0a18be1d7ca858808e2 (patch)
tree1283e882dc01cee980231f7237cd7a2ff7816161 /src/mesa/main/uniform_query.cpp
parenteca9d160483fa04caa8c8aeb527d7e42016dfeb2 (diff)
glsl/linker: assign explicit uniform locations
Patch refactors the existing uniform processing so explicit locations are taken in to account during variable processing. These locations are temporarily stored in gl_uniform_storage before actual locations are set. UNMAPPED_UNIFORM_LOC marks unset location so that we can use 0 as a valid explicit location. When locations are set, UniformRemapTable is first populated with uniforms that have explicit location set (inactive and active ones), rest are put after explicit location slots. v2: introduce define for locations that have not been set yet (Ian) Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/uniform_query.cpp')
0 files changed, 0 insertions, 0 deletions