From 4f513bc330393c4615b4bad98e3e634408123960 Mon Sep 17 00:00:00 2001 From: Laura Ekstrand Date: Wed, 14 Jan 2015 12:44:39 -0800 Subject: main: Refactor MapBuffer[Range]. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v2: review from Jason Ekstrand - Split refactor from addition of DSA entry points. review from Ian Romanick - Remove "_mesa" from static software fallback map_buffer_range - Restore VBO_DEBUG and BOUNDS_CHECK Reviewed-by: Fredrik Höglund --- src/mesa/main/bufferobj.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/main/bufferobj.h') diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index 2a6644461a8..3584a80f1ef 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -155,6 +155,12 @@ _mesa_copy_buffer_sub_data(struct gl_context *ctx, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size, const char *func); +extern void * +_mesa_map_buffer_range(struct gl_context *ctx, + struct gl_buffer_object *bufObj, + GLintptr offset, GLsizeiptr length, + GLbitfield access, const char *func); + extern void _mesa_ClearBufferSubData_sw(struct gl_context *ctx, GLintptr offset, GLsizeiptr size, -- cgit v1.2.3