[Mesa-dev] [PATCH] radeonsi: also dump shaders on a VM fault

Christian König deathsimple at vodafone.de
Thu Feb 25 18:21:35 UTC 2016


Am 25.02.2016 um 17:54 schrieb Marek Olšák:
> From: Marek Olšák <marek.olsak at amd.com>

Clearly a good idea. Patch is Reviewed-by: Christian König 
<christian.koenig at amd.com>

>
> ---
>   src/gallium/drivers/radeonsi/si_debug.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c
> index 7c2b745..eb0cabb 100644
> --- a/src/gallium/drivers/radeonsi/si_debug.c
> +++ b/src/gallium/drivers/radeonsi/si_debug.c
> @@ -781,8 +781,7 @@ void si_check_vm_faults(struct si_context *sctx)
>   	fprintf(f, "Device name: %s\n\n", screen->get_name(screen));
>   	fprintf(f, "Failing VM page: 0x%08x\n\n", addr);
>   
> -	si_dump_last_bo_list(sctx, f);
> -	si_dump_last_ib(sctx, f);
> +	si_dump_debug_state(&sctx->b.b, f, 0);
>   	fclose(f);
>   
>   	fprintf(stderr, "Detected a VM fault, exiting...\n");



More information about the mesa-dev mailing list