From f8a5cb8cb2fde732016888a2554872d702803c01 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 17 Sep 2008 18:08:03 +0200 Subject: [PATCH] tgsi: More debug printing on sanity check error --- src/mesa/state_tracker/st_mesa_to_tgsi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index e822c8ac61b..49abee15a17 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -984,9 +984,12 @@ tgsi_translate_mesa_program( #if DEBUG if(!tgsi_sanity_check(tokens)) { - //debug_printf("Due to sanity check failure the following shader program is invalid\n"); + debug_printf("Due to sanity check failure(s) above the following shader program is invalid:\n"); + debug_printf("\nOriginal program:\n%s", program->String); + debug_printf("\nMesa program:\n"); + _mesa_print_program(program); + debug_printf("\nTGSI program:\n"); tgsi_dump(tokens, 0); - assert(0); } #endif -- 2.30.2