nir/validate: Allow subroutine types for the tails of derefs
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 10 Nov 2015 22:13:47 +0000 (14:13 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Nov 2015 06:08:43 +0000 (22:08 -0800)
commit4bbf2ac06e71102a65b4d0427a0ba630a3c2477c
tree4d3a453117289e247882ec14a0ccf8a3db123541
parent79f68306d23bfb48ef645c4bded8ee7b74d2d661
nir/validate: Allow subroutine types for the tails of derefs

The shader-subroutine code creates uniforms of type SUBROUTINE for
subroutines that are then read as integers in the backends.  If we ever
want to do any optimizations on these, we'll need to come up with a better
plan where they are actual scalars or something, but this works for now.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92859
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_validate.c