diff options
author | Marek Olšák <[email protected]> | 2015-06-14 16:37:02 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-06-16 15:47:03 +0200 |
commit | 42a3c1ec8471fc76eb6d3d6f1bd1739e24a5f33a (patch) | |
tree | aac50742ec77a421d74545b076be4503a24dde06 | |
parent | 358b6bb7a71663ab5e1c62f2b7767c20acebc2fa (diff) |
mesa: don't rebind constant buffers after every state change if GS is active
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/mesa/main/state.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 5b970081a3f..bede7fe1d0e 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -266,15 +266,9 @@ update_program_constants(struct gl_context *ctx) } } - if (ctx->GeometryProgram._Current) { - const struct gl_program_parameter_list *params = - ctx->GeometryProgram._Current->Base.Parameters; - /*FIXME: StateFlags is always 0 because we have unnamed constant - * not state changes */ - if (params /*&& params->StateFlags & ctx->NewState*/) { - new_state |= _NEW_PROGRAM_CONSTANTS; - } - } + /* Don't handle geometry shaders here. They don't use any state + * constants. + */ if (ctx->VertexProgram._Current) { const struct gl_program_parameter_list *params = |