glsl/linker: Allow link_intrastage_shaders when there is no main()
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 15 Sep 2016 18:09:34 +0000 (11:09 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 10 Nov 2016 22:30:49 +0000 (14:30 -0800)
commit9788b3b6f363580fd8d9d7e221cab28879e4d169
tree4b7a4156d35ba43246068616e99e89410d2df054
parent7372d2153ab68eefec792a8cb094a6557bdb8b4a
glsl/linker: Allow link_intrastage_shaders when there is no main()

This enables a sort of par-linking.  The primary use for this feature is
resolving built-in functions in the stand-alone compiler.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/linker.cpp
src/compiler/glsl/linker.h