diff options
author | Kristian Høgsberg <[email protected]> | 2015-05-13 10:41:55 +0200 |
---|---|---|
committer | Samuel Iglesias Gonsalvez <[email protected]> | 2015-07-14 07:04:03 +0200 |
commit | 18feaa8f36b311c443fd56666507ec1768fb9582 (patch) | |
tree | 2fd84214a9a397fc02591b3300df37486da58f0d /src/glsl/lower_variable_index_to_cond_assign.cpp | |
parent | 3095ee9b8bd4154cc63b6332c21b16954555e241 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/glsl/lower_variable_index_to_cond_assign.cpp')
-rw-r--r-- | src/glsl/lower_variable_index_to_cond_assign.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/lower_variable_index_to_cond_assign.cpp b/src/glsl/lower_variable_index_to_cond_assign.cpp index d878cb07811..4a6a76c4eba 100644 --- a/src/glsl/lower_variable_index_to_cond_assign.cpp +++ b/src/glsl/lower_variable_index_to_cond_assign.cpp @@ -370,6 +370,7 @@ public: case ir_var_temporary: return this->lower_temps; case ir_var_uniform: + case ir_var_shader_storage: return this->lower_uniforms; case ir_var_function_in: case ir_var_const_in: |