linker: Allow consumer stage or producer stage to be NULL
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 14 Feb 2014 20:08:53 +0000 (12:08 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 May 2014 14:19:40 +0000 (07:19 -0700)
commit7d73c3e99ec14031e3834096f7e8e257338b64d4
treef556eef1f052f092de9bb11b605c70c2dda1918f
parentfe37cb0ac67071759a88ea767027368399e1fdb6
linker: Allow consumer stage or producer stage to be NULL

When linking a separable program that contains only a fragment shader,
the producer will be NULL.  Similar cases will exist with geometry
shaders and, eventually, tessellation shaders.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/link_varyings.cpp