summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/marshal.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-03-24 17:46:20 +1100
committerTimothy Arceri <[email protected]>2017-03-25 13:39:12 +1100
commit425671f616cc85899535cb84abd7406a9380565e (patch)
tree6ddb6005017470628bac9124f70af0aec209cf60 /src/mesa/main/marshal.h
parentb9e92334f79bff2497fd718d49fe7c53b5f2074c (diff)
mesa/glthread: add custom marshalling for ClearBufferfv()
This is one of the main causes of syncs in Civ6. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/marshal.h')
-rw-r--r--src/mesa/main/marshal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/marshal.h b/src/mesa/main/marshal.h
index 4e9a6653b4e..52339aa1db2 100644
--- a/src/mesa/main/marshal.h
+++ b/src/mesa/main/marshal.h
@@ -189,6 +189,7 @@ struct marshal_cmd_Flush;
struct marshal_cmd_BindBuffer;
struct marshal_cmd_BufferData;
struct marshal_cmd_BufferSubData;
+struct marshal_cmd_ClearBufferfv;
void GLAPIENTRY
_mesa_marshal_ShaderSource(GLuint shader, GLsizei count,
@@ -228,4 +229,12 @@ void GLAPIENTRY
_mesa_marshal_BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size,
const GLvoid * data);
+void
+_mesa_unmarshal_ClearBufferfv(struct gl_context *ctx,
+ const struct marshal_cmd_ClearBufferfv *cmd);
+
+void GLAPIENTRY
+_mesa_marshal_ClearBufferfv(GLenum buffer, GLint drawbuffer,
+ const GLfloat *value);
+
#endif /* MARSHAL_H */