glsl: Add ir_var_shader_storage
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 13 May 2015 08:41:55 +0000 (10:41 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Tue, 14 Jul 2015 05:04:03 +0000 (07:04 +0200)
commit18feaa8f36b311c443fd56666507ec1768fb9582
tree2fd84214a9a397fc02591b3300df37486da58f0d
parent3095ee9b8bd4154cc63b6332c21b16954555e241
glsl: Add ir_var_shader_storage

This will be used to identify buffer variables inside shader storage
buffer objects, which are very similar to uniforms except for a few
differences, most important of which is that they are writable.

Since buffer variables are so similar to uniforms, we will almost always
want them to go through the same paths as uniforms.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/builtin_variables.cpp
src/glsl/glsl_symbol_table.cpp
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_function.cpp
src/glsl/ir_print_visitor.cpp
src/glsl/ir_reader.cpp
src/glsl/loop_unroll.cpp
src/glsl/lower_named_interface_blocks.cpp
src/glsl/lower_variable_index_to_cond_assign.cpp
src/glsl/opt_structure_splitting.cpp