mesa: don't rebind constant buffers after every state change if GS is active
authorMarek Olšák <marek.olsak@amd.com>
Sun, 14 Jun 2015 14:37:02 +0000 (16:37 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 16 Jun 2015 13:47:03 +0000 (15:47 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/state.c

index 5b97008..bede7fe 100644 (file)
@@ -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 =