i965/vec4: Print "VS" or "GS" when compiles fail, not "vec4".
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Feb 2015 01:52:28 +0000 (17:52 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Feb 2015 23:15:46 +0000 (15:15 -0800)
This is now trivial to do right.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 4f66b6261444ca7d4c0762d265087316d2ac959e..562fc3037ff064a7716a1456a1c54b3ebf3d17f2 100644 (file)
@@ -3656,7 +3656,7 @@ vec4_visitor::fail(const char *format, ...)
    va_start(va, format);
    msg = ralloc_vasprintf(mem_ctx, format, va);
    va_end(va);
-   msg = ralloc_asprintf(mem_ctx, "vec4 compile failed: %s\n", msg);
+   msg = ralloc_asprintf(mem_ctx, "%s compile failed: %s\n", stage_abbrev, msg);
 
    this->fail_msg = msg;