mesa: glGetProgramInterfaceiv
authorTapani Pälli <tapani.palli@intel.com>
Fri, 6 Mar 2015 13:05:51 +0000 (15:05 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 16 Apr 2015 04:55:56 +0000 (07:55 +0300)
commit4d3b98bc5801df27a7f9f2e3df28d66d83f883d9
treee9df880029d5591f591157978e8d5e9f78082753
parentc796ce4108ccc4987c24df43606d04a0f3658d44
mesa: glGetProgramInterfaceiv

Patch adds required helper functions to shaderapi.h and
the actual implementation.

v2: code cleanup (Ilia Mirkin)
    fix array size fo xfb varyings
    validate programInterface and throw error

v3: put GL_MAX_NUM_COMPATIBLE_SUBROUTINES where
    it belongs

corresponding Piglit test:
   arb_program_interface_query-getprograminterfaceiv

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