summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorPi Tabred <[email protected]>2013-12-14 10:32:00 -0700
committerBrian Paul <[email protected]>2013-12-18 09:06:51 -0700
commit1f7c3e541fa8c16435d78585e8c2ee449de5e61a (patch)
tree083c740c9572f43366cae94a38fc0d2ee62cd5a9 /src/mesa
parent56647c5d8f8e60269f0a3277e3caa7ee57d1fe6a (diff)
mesa: Add infrastructure for GL_ARB_clear_buffer_object
- add xml file for extension - add reference in gl_API.xml - add pointer to device driver function table (dd.h) - update dispatch_sanity.cpp Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/dd.h6
-rw-r--r--src/mesa/main/tests/dispatch_sanity.cpp4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 3e263f4ac31..6e73691eab1 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -574,6 +574,12 @@ struct dd_function_table {
GLintptrARB offset, GLsizeiptrARB size,
GLvoid *data, struct gl_buffer_object *obj );
+ void (*ClearBufferSubData)( struct gl_context *ctx,
+ GLintptr offset, GLsizeiptr size,
+ const GLvoid *clearValue,
+ GLsizeiptr clearValueSize,
+ struct gl_buffer_object *obj );
+
void (*CopyBufferSubData)( struct gl_context *ctx,
struct gl_buffer_object *src,
struct gl_buffer_object *dst,
diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp
index 2f4539a4247..227a4fd8b89 100644
--- a/src/mesa/main/tests/dispatch_sanity.cpp
+++ b/src/mesa/main/tests/dispatch_sanity.cpp
@@ -846,8 +846,8 @@ const struct function gl_core_functions_possible[] = {
// { "glGetObjectLabel", 43, -1 }, // XXX: Add to xml
// { "glObjectPtrLabel", 43, -1 }, // XXX: Add to xml
// { "glGetObjectPtrLabel", 43, -1 }, // XXX: Add to xml
-// { "glClearBufferData", 43, -1 }, // XXX: Add to xml
-// { "glClearBufferSubData", 43, -1 }, // XXX: Add to xml
+ { "glClearBufferData", 43, -1 },
+ { "glClearBufferSubData", 43, -1 },
// { "glClearNamedBufferDataEXT", 43, -1 }, // XXX: Add to xml
// { "glClearNamedBufferSubDataEXT", 43, -1 }, // XXX: Add to xml
// { "glDispatchCompute", 43, -1 }, // XXX: Add to xml