glsl: add support for EXT_blend_func_extended builtins
authorRyan Houdek <Sonicadvance1@gmail.com>
Thu, 5 Nov 2015 16:59:32 +0000 (10:59 -0600)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 19 Nov 2015 16:39:51 +0000 (11:39 -0500)
commit1d1d02f2ac69475da112a6aadfa7c161b13ff4da
tree6e57db7b9f07e8cf73b1acbb5bb85aa35ec13114
parentceecb0876f1479661e561520c7e3561fd051720a
glsl: add support for EXT_blend_func_extended builtins

gl_MaxDualSourceDrawBuffersEXT - Maximum dual-source draw buffers supported

For ESSL 1.0, it provides two builtins since you can't have user-defined
color output variables:
  gl_SecondaryFragColorEXT
  gl_SecondaryFragDataEXT[MaxDSDrawBuffers]

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/ast_to_hir.cpp
src/glsl/builtin_variables.cpp