aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_ubo_reference.cpp
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-09-18 12:53:10 -0700
committerPaul Berry <[email protected]>2013-10-09 16:49:23 -0700
commit6f19e552af7ab078cfefbcaa1560bb921ddcaf07 (patch)
treea6ed247e186cfaf0ef39507aded8054f75784601 /src/glsl/lower_ubo_reference.cpp
parent2f2f39c38960954981fde49bb75ebe1c333f0440 (diff)
glsl: Move update of max_array_access into a separate function.
Currently, when converting an access to an array element from ast to IR, we need to see if the array is an ir_dereference_variable, and if so update the variable's max_array_access. When we add support for unsized arrays in interface blocks, we'll also need to account for cases where the array is an ir_dereference_record and the record is an interface block. To make this easier, move the update into its own function. v2: Use an ordinary function in ast_array_index.cpp rather than a virtual function in ir_rvalue. Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/lower_ubo_reference.cpp')
0 files changed, 0 insertions, 0 deletions