mesa: make _mesa_flush_mapped_buffer_range() static
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 4 May 2017 03:39:59 +0000 (13:39 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 7 May 2017 05:29:33 +0000 (15:29 +1000)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h

index 6fa32e90fda0dace89a596cffdfd418f3294ab26..75526b5e339e07dc2bcffbdb9d6b141d7bc94464 100644 (file)
@@ -2777,11 +2777,11 @@ _mesa_MapNamedBuffer(GLuint buffer, GLenum access)
 }
 
 
-void
-_mesa_flush_mapped_buffer_range(struct gl_context *ctx,
-                                struct gl_buffer_object *bufObj,
-                                GLintptr offset, GLsizeiptr length,
-                                const char *func)
+static void
+flush_mapped_buffer_range(struct gl_context *ctx,
+                          struct gl_buffer_object *bufObj,
+                          GLintptr offset, GLsizeiptr length,
+                          const char *func)
 {
    if (!ctx->Extensions.ARB_map_buffer_range) {
       _mesa_error(ctx, GL_INVALID_OPERATION,
@@ -2842,8 +2842,8 @@ _mesa_FlushMappedBufferRange(GLenum target, GLintptr offset,
    if (!bufObj)
       return;
 
-   _mesa_flush_mapped_buffer_range(ctx, bufObj, offset, length,
-                                   "glFlushMappedBufferRange");
+   flush_mapped_buffer_range(ctx, bufObj, offset, length,
+                             "glFlushMappedBufferRange");
 }
 
 void GLAPIENTRY
@@ -2858,8 +2858,8 @@ _mesa_FlushMappedNamedBufferRange(GLuint buffer, GLintptr offset,
    if (!bufObj)
       return;
 
-   _mesa_flush_mapped_buffer_range(ctx, bufObj, offset, length,
-                                   "glFlushMappedNamedBufferRange");
+   flush_mapped_buffer_range(ctx, bufObj, offset, length,
+                             "glFlushMappedNamedBufferRange");
 }
 
 
index d538d0f2ca57f439fbaa8757c9aa11ac3f089ebb..44fcaaad860cef183cf41845c5ed0c2787da520f 100644 (file)
@@ -158,12 +158,6 @@ _mesa_copy_buffer_sub_data(struct gl_context *ctx,
                            GLintptr readOffset, GLintptr writeOffset,
                            GLsizeiptr size, const char *func);
 
-extern void
-_mesa_flush_mapped_buffer_range(struct gl_context *ctx,
-                                struct gl_buffer_object *bufObj,
-                                GLintptr offset, GLsizeiptr length,
-                                const char *func);
-
 extern void
 _mesa_ClearBufferSubData_sw(struct gl_context *ctx,
                             GLintptr offset, GLsizeiptr size,