aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-05-04 13:39:59 +1000
committerTimothy Arceri <[email protected]>2017-05-07 15:29:33 +1000
commit30d8dea6020ea49890c27c3cb26aa300c80161c9 (patch)
tree3625962b31c4746c45d22b44e5416f1e0a763c16
parentbbae62c714b8e4b74ab8e4105ca5a6bff40ba5ce (diff)
mesa: make _mesa_flush_mapped_buffer_range() static
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/mesa/main/bufferobj.c18
-rw-r--r--src/mesa/main/bufferobj.h6
2 files changed, 9 insertions, 15 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 6fa32e90fda..75526b5e339 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -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");
}
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index d538d0f2ca5..44fcaaad860 100644
--- a/src/mesa/main/bufferobj.h
+++ b/src/mesa/main/bufferobj.h
@@ -159,12 +159,6 @@ _mesa_copy_buffer_sub_data(struct gl_context *ctx,
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,
const GLvoid *clearValue,