[Mesa-dev] [PATCH] r600g: Honour legacy debugging environment variables
Alex Deucher
alexdeucher at gmail.com
Thu Mar 21 10:19:59 PDT 2013
On Thu, Mar 21, 2013 at 12:59 PM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> This helps minimize confusion / effort when moving between branches or
> helping others.
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
> src/gallium/drivers/r600/r600_pipe.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
> index 9ed8814..7a84f3d 100644
> --- a/src/gallium/drivers/r600/r600_pipe.c
> +++ b/src/gallium/drivers/r600/r600_pipe.c
> @@ -1088,6 +1088,16 @@ struct pipe_screen *r600_screen_create(struct radeon_winsys *ws)
> ws->query_info(ws, &rscreen->info);
>
> rscreen->debug_flags = debug_get_flags_option("R600_DEBUG", debug_options, 0);
> + if (debug_get_bool_option("R600_DEBUG_COMPUTE", FALSE))
> + rscreen->debug_flags |= DBG_COMPUTE;
> + if (debug_get_bool_option("R600_DUMP_SHADERS", FALSE))
> + rscreen->debug_flags |= DBG_FS | DBG_VS | DBG_GS | DBG_PS | DBG_CS;
> + if (!debug_get_bool_option("R600_HYPERZ", TRUE))
> + rscreen->debug_flags |= DBG_NO_HYPERZ;
> + if (!debug_get_bool_option("R600_LLVM", TRUE))
> + rscreen->debug_flags |= DBG_NO_LLVM;
> + if (debug_get_bool_option("R600_PRINT_TEXDEPTH", FALSE))
> + rscreen->debug_flags |= DBG_TEX_DEPTH;
> rscreen->family = rscreen->info.family;
> rscreen->chip_class = rscreen->info.chip_class;
>
> --
> 1.7.10.4
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list