glsl/ir: allow ir_call to handle subroutine calling
authorDave Airlie <airlied@redhat.com>
Fri, 24 Apr 2015 00:47:03 +0000 (10:47 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Jul 2015 07:25:34 +0000 (17:25 +1000)
commit884df9ef834d6b77226d0dfd778c5317365a2394
treee3a93b3f51683bdb0ed69148bac9760de408504c
parent30681c3bb80ad78392f1740aa915efa072c837e8
glsl/ir: allow ir_call to handle subroutine calling

This adds a ir_variable which contains the subroutine uniform
and an array rvalue for the deref of that uniform, these
are stored in the ir_call and lowered later.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/ir.h