glsl: a shader storage buffer must be smaller than the maximum size allowed
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Tue, 21 Apr 2015 10:12:05 +0000 (12:12 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:22 +0000 (08:39 +0200)
commita7b4ab45d08d8469daefb9f2af34ad6860b9fc3b
tree358328f546da9be419cf05a6a4b70185153d7dcd
parente854a9800120ac0b1930da27f39207a35a637779
glsl: a shader storage buffer must be smaller than the maximum size allowed

Otherwise, generate a link time error as per the
ARB_shader_storage_buffer_object spec.

v2:
- Fix error message (Jordan)

v3:
- Move std140_size() changes to its own patch (Kristian)

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/link_uniform_blocks.cpp
src/glsl/linker.cpp
src/glsl/linker.h