glsl: store stage reference in gl_uniform_block
authorTimothy Arceri <timothy.arceri@collabora.com>
Sat, 2 Apr 2016 01:51:12 +0000 (12:51 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sat, 2 Apr 2016 06:10:56 +0000 (17:10 +1100)
commit1265e1c4e17dec5c9931fda8b6d44a4006ed1a4c
treeccd8536971deac76c85aaee507ce2ec6303cefaa
parentd8855d66f4ae2acf994eae31e59fd2cfa5483627
glsl: store stage reference in gl_uniform_block

This allows us to simplify the code and drop InterfaceBlockStageIndex
which is a per stage array of integers the size of all blocks in the
program combined including duplicates across stages. Adding a stage
ref per block will use less memory.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/linker.cpp
src/compiler/glsl/standalone_scaffolding.cpp
src/mesa/main/mtypes.h
src/mesa/main/shader_query.cpp
src/mesa/main/shaderobj.c