mesa: add new enum MAX_UNIFORM_LOCATIONS
authorTapani Pälli <tapani.palli@intel.com>
Mon, 5 May 2014 04:55:34 +0000 (07:55 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 16 Jun 2014 03:49:59 +0000 (06:49 +0300)
commitbfe42ddd99e8702e2daf14238966069fd25b6d0e
treeb82d5529f1d94787bdbd0f584fabcc4ac35b8e7d
parentd1a64aad16c27ca40b3568b38156f6cced98f2fb
mesa: add new enum MAX_UNIFORM_LOCATIONS

Patch adds new implementation dependent value required by the
GL_ARB_explicit_uniform_location extension. Default value for user
assignable locations is calculated as sum of MaxUniformComponents
for each stage.

v2: fix descriptor in get_hash_params.py (Petri)
v3: simpler formula for calculating initial value (Ian)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/context.c
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h
src/mesa/main/tests/enum_strings.cpp