glsl: Apply memory qualifiers to buffer variables
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 28 Apr 2015 10:09:58 +0000 (12:09 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:23 +0000 (08:39 +0200)
commitf1b647fdd1028bf475ed258c4dd8b833339ec796
tree778cd8361c94faee543e8bcbbdea6deb631f8a7d
parentf4c8c01a3db984a08dc02b72c2904b0532e0847f
glsl: Apply memory qualifiers to buffer variables

v2:
  - Save memory qualifier info in the top level members of a shader
    storage block.
  - Add a checks to record_compare() which is used when comparing
    shader storage buffer declarations in different shaders.
  - Always report an error for incompatible readonly/writeonly
    definitions, whether they are present at block or field level.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/ast_to_hir.cpp
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h