summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/uniforms.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-10-18 14:38:12 -0700
committerIan Romanick <[email protected]>2011-11-07 13:33:16 -0800
commit70650d08fa3f4db2aea41e4ed47b271c3a3e7385 (patch)
treead221dabff75dc748111b326a049c4261e6841ea /src/mesa/main/uniforms.h
parent9516182e80d5a21ab402c9b2cbe9e6c46e5bb1d8 (diff)
mesa: Add _mesa_uniform_{attach,detach_all}_driver_storage functions
These functions are used to create and destroy the connections between a uniform and the storage used by the driver to hold its value. Signed-off-by: Ian Romanick <[email protected]> Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/mesa/main/uniforms.h')
-rw-r--r--src/mesa/main/uniforms.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/uniforms.h b/src/mesa/main/uniforms.h
index 4698ffce4f5..b90f64b9b0a 100644
--- a/src/mesa/main/uniforms.h
+++ b/src/mesa/main/uniforms.h
@@ -27,6 +27,7 @@
#include "glheader.h"
#include "program/prog_parameter.h"
+#include "../glsl/ir_uniform.h"
struct gl_program;
struct _glapi_table;
@@ -189,6 +190,16 @@ _mesa_get_uniform(struct gl_context *ctx, GLuint program, GLint location,
GLsizei bufSize, GLenum returnType, GLvoid *paramsOut);
extern void
+_mesa_uniform_attach_driver_storage(struct gl_uniform_storage *,
+ unsigned element_stride,
+ unsigned vector_stride,
+ enum gl_uniform_driver_format format,
+ void *data);
+
+extern void
+_mesa_uniform_detach_all_driver_storage(struct gl_uniform_storage *uni);
+
+extern void
_mesa_propagate_uniforms_to_driver_storage(struct gl_uniform_storage *uni,
unsigned array_index,
unsigned count);