[Mesa-dev] [PATCH] svga: don't use debug code in update_state() in release builds

Jose Fonseca jfonseca at vmware.com
Wed Dec 16 08:08:46 PST 2015


On 16/12/15 00:58, Brian Paul wrote:
> ---
>   src/gallium/drivers/svga/svga_state.c | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/drivers/svga/svga_state.c b/src/gallium/drivers/svga/svga_state.c
> index 722b369..4479a27 100644
> --- a/src/gallium/drivers/svga/svga_state.c
> +++ b/src/gallium/drivers/svga/svga_state.c
> @@ -129,7 +129,11 @@ update_state(struct svga_context *svga,
>                const struct svga_tracked_state *atoms[],
>                unsigned *state)
>   {
> +#ifdef DEBUG
>      boolean debug = TRUE;
> +#else
> +   boolean debug = FALSE;
> +#endif
>      enum pipe_error ret = PIPE_OK;
>      unsigned i;
>
>

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>


More information about the mesa-dev mailing list