mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 09:00:30 +01:00
tgsi: More debug printing on sanity check error
This commit is contained in:
parent
f10e7f0d28
commit
f8a5cb8cb2
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue