From: Kenneth Graunke Date: Thu, 19 Feb 2015 01:52:28 +0000 (-0800) Subject: i965/vec4: Print "VS" or "GS" when compiles fail, not "vec4". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5cdfa839c26332dc5fc034966fe107d4779a64d7;p=mesa.git i965/vec4: Print "VS" or "GS" when compiles fail, not "vec4". This is now trivial to do right. Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand Reviewed-by: Ian Romanick Reviewed-by: Kristian Høgsberg Reviewed-by: Anuj Phogat --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 4f66b626144..562fc3037ff 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -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;