[Mesa-dev] [PATCH 13/18] st/mesa: stop calling _mesa_init_buffer_object_functions()
Timothy Arceri
tarceri at itsqueeze.com
Thu May 4 07:41:38 UTC 2017
After calling this we were then overriding all the functions with
st versions.
---
src/mesa/state_tracker/st_cb_bufferobjects.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 5911d1e..c1994d5 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -576,23 +576,20 @@ st_bufferobj_page_commitment(struct gl_context *ctx,
if (!pipe->resource_commit(pipe, buf->buffer, 0, &box, commit)) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "glBufferPageCommitmentARB(out of memory)");
return;
}
}
void
st_init_bufferobject_functions(struct pipe_screen *screen,
struct dd_function_table *functions)
{
- /* plug in default driver fallbacks (such as for ClearBufferSubData) */
- _mesa_init_buffer_object_functions(functions);
-
functions->NewBufferObject = st_bufferobj_alloc;
functions->DeleteBuffer = st_bufferobj_free;
functions->BufferData = st_bufferobj_data;
functions->BufferSubData = st_bufferobj_subdata;
functions->GetBufferSubData = st_bufferobj_get_subdata;
functions->MapBufferRange = st_bufferobj_map_range;
functions->FlushMappedBufferRange = st_bufferobj_flush_mapped_range;
functions->UnmapBuffer = st_bufferobj_unmap;
functions->CopyBufferSubData = st_copy_buffer_subdata;
functions->ClearBufferSubData = st_clear_buffer_subdata;
--
2.9.3
More information about the mesa-dev
mailing list