st/mesa: make st_draw_vbo static
authorMarek Olšák <marek.olsak@amd.com>
Mon, 8 May 2017 00:08:17 +0000 (02:08 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 10 May 2017 17:29:08 +0000 (19:29 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_feedback.c
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw.h

index 2ca2defc0f1d5f4872ae45ccf3772288f6816273..436062b1f8581ffaac3969c04ca7f715c9341c1a 100644 (file)
@@ -282,7 +282,7 @@ st_RenderMode(struct gl_context *ctx, GLenum newMode )
 
    if (newMode == GL_RENDER) {
       /* restore normal VBO draw function */
-      vbo_set_draw_func(ctx, st_draw_vbo);
+      st_init_draw(st);
    }
    else if (newMode == GL_SELECT) {
       if (!st->selection_stage)
index 8b657be6bc0ee02ac04e3cb57623198e16764cc1..78aabb089621755979fa34d2c02e995ce687041e 100644 (file)
@@ -130,7 +130,7 @@ translate_prim(const struct gl_context *ctx, unsigned prim)
  * we have something to render.
  * Basically, translate the information into the format expected by gallium.
  */
-void
+static void
 st_draw_vbo(struct gl_context *ctx,
             const struct _mesa_prim *prims,
             GLuint nr_prims,
index 2c69ca4c478e111b9568f873ac05464634fc2303..12a30eecbbc07e5c926849af0f27f4a4895a19fd 100644 (file)
@@ -49,18 +49,6 @@ void st_destroy_draw( struct st_context *st );
 
 struct draw_context *st_get_draw_context(struct st_context *st);
 
-extern void
-st_draw_vbo(struct gl_context *ctx,
-            const struct _mesa_prim *prims,
-            GLuint nr_prims,
-            const struct _mesa_index_buffer *ib,
-           GLboolean index_bounds_valid,
-            GLuint min_index,
-            GLuint max_index,
-            struct gl_transform_feedback_object *tfb_vertcount,
-            unsigned stream,
-            struct gl_buffer_object *indirect);
-
 extern void
 st_feedback_draw_vbo(struct gl_context *ctx,
                      const struct _mesa_prim *prims,