aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2008-09-17 18:08:03 +0200
committerJakob Bornecrantz <[email protected]>2008-09-17 18:13:17 +0200
commitf8a5cb8cb2fde732016888a2554872d702803c01 (patch)
treecfecad75c396466340ff27ffe00d2f95a6c80663
parentf10e7f0d288530a31a7ed3bc976a537fe640ce69 (diff)
tgsi: More debug printing on sanity check error
-rw-r--r--src/mesa/state_tracker/st_mesa_to_tgsi.c7
1 files 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