main: Add SHADER_STORAGE_BLOCK and BUFFER_VARIABLE support for ARB_program_interface_...
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 6 May 2015 06:11:02 +0000 (08:11 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:23 +0000 (08:39 +0200)
commit9b477ad49d3f82503a1b8ba23dedfc05cd848fe8
treeb446e9e00b8ed22c73d6b80a0e152fd4dd491b7f
parent0f18945cb612493d787377d8cbb138c18738f683
main: Add SHADER_STORAGE_BLOCK and BUFFER_VARIABLE support for ARB_program_interface_query

Including TOP_LEVEL_ARRAY_SIZE and TOP_LEVEL_ARRAY_STRIDE queries.

v2:
- Use std430_array_stride() to get top level array stride following std430's rules.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/ir_uniform.h
src/glsl/link_uniforms.cpp
src/glsl/linker.cpp
src/mesa/main/program_resource.c
src/mesa/main/shader_query.cpp