[Mesa-dev] [PATCH v4 2/6] st/mesa: set debug callback for debug contexts

Marek Olšák maraeo at gmail.com
Wed Nov 4 03:53:05 PST 2015


On Wed, Nov 4, 2015 at 6:49 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/state_tracker/st_manager.c | 56 +++++++++++++++++++++++++++++++++++++
>  1 file changed, 56 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
> index 7abd128..c38c11d 100644
> --- a/src/mesa/state_tracker/st_manager.c
> +++ b/src/mesa/state_tracker/st_manager.c
> @@ -623,6 +623,57 @@ st_context_destroy(struct st_context_iface *stctxi)
>     st_destroy_context(st);
>  }
>
> +static void
> +st_debug_message(void *data,
> +                 unsigned *id,
> +                 enum pipe_debug_type ptype,
> +                 const char *fmt,
> +                 va_list args)
> +{
> +   struct st_context *st = data;
> +   enum mesa_debug_source source;
> +   enum mesa_debug_type type;
> +   enum mesa_debug_severity severity;

Missing space between declarations and code. Other than that:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek


More information about the mesa-dev mailing list