mesa/glsl: move BlendSupport bitfield to gl_program
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 3 Nov 2016 23:10:19 +0000 (10:10 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 29 Dec 2016 23:57:16 +0000 (10:57 +1100)
commit8417bf528eb155028d56acaa4cbe05eb3536093b
treeedcbf49a81acdabde3244f0314fb1e9ddeec8040
parent3177eef39277b64af3213603b58ff934b5218e39
mesa/glsl: move BlendSupport bitfield to gl_program

This will let us to make _CurrentFragmentProgram a gl_program pointer
allowing for simpilifications to be made.

We also need to add a field to gl_shader to hold it during parsing.

In gl_program we put it inside a union in anticipation of moving
more fields here that can be only fs or vertex stage fields.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/linker.cpp
src/compiler/glsl/lower_blend_equation_advanced.cpp
src/mesa/main/api_validate.c
src/mesa/main/mtypes.h