mesa: mesa_bufferiv utility function for buffer objects
authorTapani Pälli <tapani.palli@intel.com>
Thu, 12 Mar 2015 05:58:48 +0000 (07:58 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 16 Apr 2015 04:55:57 +0000 (07:55 +0300)
commit34df5ebd778fd3027db0f380eab71a95cfa298c0
treed5b1d8ad4ca79156407370e0f3406499c30a499d
parent4e7f134f89f52cf103e2b682faa72dac4cc2f840
mesa: mesa_bufferiv utility function for buffer objects

Patch adds new function 'mesa_bufferiv' and refactors existing
GetActiveUniformBlockiv and GetActiveAtomicCounterBufferiv to
use it.

corresponding Piglit tests:
   arb_uniform_buffer_object*
   arb_shader_atomic_counters*

(Many tests hit the corresponding queries.)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
src/mesa/main/shader_query.cpp
src/mesa/main/uniforms.c