glsl: use ir_rvalue instead of ir_dereference in auxiliary functions
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Tue, 1 Sep 2015 09:57:07 +0000 (11:57 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:22 +0000 (08:39 +0200)
commitda659087b9620805c155c3954f560995ed96d5b4
treec2ad9a3731b62e56cfc01e260fad1551472cf9a3
parentea0a1f5beb22982a886ba862ba95f92c9e35165a
glsl: use ir_rvalue instead of ir_dereference in auxiliary functions

In a later commit we will need to handle ir_swizzle nodes too, which are
not an ir_dereference. That can happen, for example, when we pass a
component of an integer vector as argument to any of the SSBO atomic
functions.

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