nir/validate: dump annotated shader with error msgs
authorRob Clark <robclark@freedesktop.org>
Sat, 14 May 2016 19:40:54 +0000 (15:40 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 17 May 2016 14:05:20 +0000 (10:05 -0400)
commite8beffb1b3e989035b49b79a76b58f8cbf446ea4
tree4a38ae44dc5a0bb5121be4740a30383dbdd6c8bc
parent54ecfcc162fd1598e49c7f7aba9b0fde7f4a97e2
nir/validate: dump annotated shader with error msgs

Log all the errors, and at the end dump the shader w/ error annotations
to make it easier to see where the problems are.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_validate.c