glsl: add support for ARB_blend_func_extended (v3)
authorDave Airlie <airlied@redhat.com>
Sat, 24 Mar 2012 13:33:41 +0000 (13:33 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Apr 2012 16:19:01 +0000 (17:19 +0100)
commit1256a5dcc86014d48bdc6fd10ea5a2fa11241667
tree8739552f09debe93734d1b338ac0e2787fc8a80f
parentf8cf79936b42405a8366613b80e3bde21aadaa02
glsl: add support for ARB_blend_func_extended (v3)

This adds index support to the GLSL compiler.

I'm not 100% sure of my approach here, esp without how output ordering
happens wrt location, index pairs, in the "mark" function.

Since current hw doesn't ever have a location > 0 with an index > 0,
we don't have to work out if the output ordering the hw requires is
location, index, location, index or location, location, index, index.
But we have no hw to know, so punt on it for now.

v2: index requires layout - catch and error
    setup explicit index properly.

v3: drop idx_offset stuff, assume index follow location

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/ast.h
src/glsl/ast_to_hir.cpp
src/glsl/builtin_variables.cpp
src/glsl/glsl_parser.yy
src/glsl/ir.h
src/glsl/ir_clone.cpp
src/glsl/ir_set_program_inouts.cpp
src/glsl/linker.cpp