diff options
author | Timothy Arceri <[email protected]> | 2016-11-04 10:10:19 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-12-30 10:57:16 +1100 |
commit | 8417bf528eb155028d56acaa4cbe05eb3536093b (patch) | |
tree | edcbf49a81acdabde3244f0314fb1e9ddeec8040 /src/mesa/main/api_validate.c | |
parent | 3177eef39277b64af3213603b58ff934b5218e39 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r-- | src/mesa/main/api_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 2f9980e7e6c..42eeeba1414 100644 --- a/src/mesa/main/api_validate.c +++ b/src/mesa/main/api_validate.c @@ -102,7 +102,7 @@ check_blend_func_error(struct gl_context *ctx) const struct gl_shader_program *sh_prog = ctx->_Shader->_CurrentFragmentProgram; const GLbitfield blend_support = !sh_prog ? 0 : - sh_prog->_LinkedShaders[MESA_SHADER_FRAGMENT]->info.BlendSupport; + sh_prog->_LinkedShaders[MESA_SHADER_FRAGMENT]->Program->sh.fs.BlendSupport; if ((blend_support & ctx->Color._AdvancedBlendMode) == 0) { _mesa_error(ctx, GL_INVALID_OPERATION, |