program_resource: add subroutine support (v3.1)
authorDave Airlie <airlied@redhat.com>
Mon, 20 Apr 2015 00:27:58 +0000 (10:27 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Jul 2015 07:25:49 +0000 (17:25 +1000)
commit0a18f160159b93c57943e5cb4d9d9a78a5b72996
tree4aae990fc95f4ffa72f8ccbd97eeec30bc123674
parent60266863d80bb2af94fa5c189ccd23ee20607ea9
program_resource: add subroutine support (v3.1)

This fleshes out the ARB_program_query support for the
APIs that ARB_shader_subroutine introduces, leaving
some TODOs for later addition.

v2: reworked for lots of the ARB_program_interface_query
entry points and tests
v3: use common function to test for subroutine support
v3.1: add tess, fix missing breaks

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/program_resource.c
src/mesa/main/shader_query.cpp