glsl: implement unsized array length
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 8 Jul 2015 15:42:14 +0000 (17:42 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:21 +0000 (08:39 +0200)
commit750c694474776fd545262aaf3190ccd92d6bb0ec
treef9a0b09f36be6c139ba8e22e98972da34cd821fb
parent273f61a0051a794d1a39d70fb1dbf46a3ca3c63f
glsl: implement unsized array length

v2:
- Reduce the number of lines over 80 character line width
  limit. (Thomas Hellan)

v3:
- Inject the formula to compute the array length in the IR, backends
  only need to provide the buffer size (Curro)
- Create an auxiliary function to simplify code (Jordan Justen)
- Rename variables (Jordan Justen)

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/lower_ubo_reference.cpp