aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-08-10 10:37:53 -0400
committerRob Clark <[email protected]>2016-01-21 17:19:05 -0500
commit1f7a96e005be0c0941df5487a11c53f048ebd58a (patch)
tree8808d9aa4d7f355b8eda9f059d1c338a03e82a56 /src/mesa/main/errors.c
parentcbf0e64ee1e2d4514dbec9e4fbf688098fcef318 (diff)
mesa: add GREMEDY_string_marker
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r--src/mesa/main/errors.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index 9e6610918c4..630d3525fd4 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -1276,6 +1276,19 @@ _mesa_free_errors_data(struct gl_context *ctx)
mtx_destroy(&ctx->DebugMutex);
}
+void GLAPIENTRY
+_mesa_StringMarkerGREMEDY(GLsizei len, const GLvoid *string)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ if (ctx->Extensions.GREMEDY_string_marker) {
+ /* if length not specified, string will be null terminated: */
+ if (len <= 0)
+ len = strlen(string);
+ ctx->Driver.EmitStringMarker(ctx, string, len);
+ } else {
+ _mesa_error(ctx, GL_INVALID_OPERATION, "StringMarkerGREMEDY");
+ }
+}
/**********************************************************************/
/** \name Diagnostics */