diff --git a/.pick_status.json b/.pick_status.json index ae28d66ad2a..398f8837f9b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -571,7 +571,7 @@ "description": "mesa/st: emit string marker based on PIPE_CAP_STRING_MARKER", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "10ac88b72fac70eb3fa698179d48378600f59f74" }, diff --git a/src/mesa/main/debug_output.c b/src/mesa/main/debug_output.c index fbf414ffbf1..bee71950dea 100644 --- a/src/mesa/main/debug_output.c +++ b/src/mesa/main/debug_output.c @@ -1089,7 +1089,7 @@ _mesa_DebugMessageInsert(GLenum source, GLenum type, GLuint id, gl_enum_to_debug_severity(severity), length, buf); - if (type == GL_DEBUG_TYPE_MARKER && ctx->pipe->emit_string_marker) { + if (type == GL_DEBUG_TYPE_MARKER && ctx->has_string_marker) { ctx->pipe->emit_string_marker(ctx->pipe, buf, length); } } diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index eea350fbd72..18bc475a06c 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3625,6 +3625,7 @@ struct gl_context struct st_config_options *st_opts; struct cso_context *cso_context; bool has_invalidate_buffer; + bool has_string_marker; /* On old libGL's for linux we need to invalidate the drawables * on glViewpport calls, this is set via a option. */ diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index d3fc9774b76..c90927d053b 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -869,6 +869,9 @@ st_create_context(gl_api api, struct pipe_context *pipe, if (pipe->screen->get_param(pipe->screen, PIPE_CAP_INVALIDATE_BUFFER)) ctx->has_invalidate_buffer = true; + if (pipe->screen->get_param(pipe->screen, PIPE_CAP_STRING_MARKER)) + ctx->has_string_marker = true; + st = st_create_context_priv(ctx, pipe, options); if (!st) { _mesa_free_context_data(ctx, true);