[Mesa-dev] [PATCH 1/5] main: Add MESA_VERBOSE=api for LinkProgram & UseProgram

Tapani Pälli tapani.palli at intel.com
Tue Dec 15 22:34:19 PST 2015


Patches 1 and 2

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

On 12/16/2015 02:08 AM, Jordan Justen wrote:
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>   src/mesa/main/shaderapi.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
> index ac40891..a732d83 100644
> --- a/src/mesa/main/shaderapi.c
> +++ b/src/mesa/main/shaderapi.c
> @@ -1514,6 +1514,8 @@ void GLAPIENTRY
>   _mesa_LinkProgram(GLhandleARB programObj)
>   {
>      GET_CURRENT_CONTEXT(ctx);
> +   if (MESA_VERBOSE & VERBOSE_API)
> +      _mesa_debug(ctx, "glLinkProgram %u\n", programObj);
>      link_program(ctx, programObj);
>   }
>   
> @@ -1731,6 +1733,9 @@ _mesa_UseProgram(GLhandleARB program)
>      GET_CURRENT_CONTEXT(ctx);
>      struct gl_shader_program *shProg;
>   
> +   if (MESA_VERBOSE & VERBOSE_API)
> +      _mesa_debug(ctx, "glUseProgram %u\n", program);
> +
>      if (_mesa_is_xfb_active_and_unpaused(ctx)) {
>         _mesa_error(ctx, GL_INVALID_OPERATION,
>                     "glUseProgram(transform feedback active)");



More information about the mesa-dev mailing list