[Mesa-dev] [PATCH] llvmpipe: dump geometry shaders when using LP_DEBUG=tgsi

Brian Paul brianp at vmware.com
Tue Jan 21 07:54:28 PST 2014


On 01/20/2014 08:54 PM, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> for consistency with vs and fs dumpers.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>   src/gallium/drivers/llvmpipe/lp_state_gs.c | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/llvmpipe/lp_state_gs.c b/src/gallium/drivers/llvmpipe/lp_state_gs.c
> index 8f4f389..74cf992 100644
> --- a/src/gallium/drivers/llvmpipe/lp_state_gs.c
> +++ b/src/gallium/drivers/llvmpipe/lp_state_gs.c
> @@ -28,6 +28,7 @@
>   #include "lp_context.h"
>   #include "lp_state.h"
>   #include "lp_texture.h"
> +#include "lp_debug.h"
>
>   #include "pipe/p_defines.h"
>   #include "util/u_memory.h"
> @@ -50,8 +51,10 @@ llvmpipe_create_gs_state(struct pipe_context *pipe,
>         goto fail;
>
>      /* debug */
> -   if (0)
> +   if (LP_DEBUG & DEBUG_TGSI) {
> +      debug_printf("llvmpipe: Create geometry shader %p:\n", (void *)state);
>         tgsi_dump(templ->tokens, 0);
> +   }
>
>      /* copy stream output info */
>      state->shader = *templ;
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list