i965: Don't hardcode FS in "validation failed!" message.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 13 Oct 2015 22:15:57 +0000 (15:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 14 Oct 2015 21:07:47 +0000 (14:07 -0700)
Instead, print "Scalar VS" or "Scalar FS".  Otherwise it's really
confusing which stage is broken.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_fs_validate.cpp

index d0e04f3bf471aeb6cdcf1296fee90c027a9d3967..814c551f1be7a4ef20a765ac701820b55e8b7fda 100644 (file)
@@ -32,7 +32,7 @@
 
 #define fsv_assert(cond) \
    if (!(cond)) { \
-      fprintf(stderr, "ASSERT: FS validation failed!\n"); \
+      fprintf(stderr, "ASSERT: Scalar %s validation failed!\n", stage_abbrev); \
       dump_instruction(inst, stderr); \
       fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #cond); \
       abort(); \