glsl: Do not allow assignments to read-only buffer variables
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 5 Aug 2015 08:30:46 +0000 (10:30 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:23 +0000 (08:39 +0200)
commit995a719499d4bd97b27f1e8c7b506202257007b6
tree4a7c21658df1ec37becf639cab20d4ae51bf60b3
parent6ef82f039c6fc82dc0910e842a47c4a69ab44e12
glsl: Do not allow assignments to read-only buffer variables

v2:
  - Merge the error check for the readonly qualifier with the already
    existing check for variables flagged as readonly (Timothy).
  - Limit the check to buffer variables, image variables have different
    semantics involved (Curro).

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/ast_to_hir.cpp