Mesa (8.0): i965: Report the failure message when failing to compile the fragment shader.
Ian Romanick
idr at kemper.freedesktop.org
Wed Feb 15 03:19:43 UTC 2012
Module: Mesa
Branch: 8.0
Commit: a63d79dd4075fdc4dba4b9b6c9801fca93a8a725
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a63d79dd4075fdc4dba4b9b6c9801fca93a8a725
Author: Eric Anholt <eric at anholt.net>
Date: Thu Feb 9 10:23:45 2012 -0800
i965: Report the failure message when failing to compile the fragment shader.
We just abort later, but at least this should result in more
informative bug reports.
NOTE: This is a candidate for release branches.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
(cherry picked from commit a7f46eadea4555ed377928d4e3f89db4a445312e)
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 40327ac..0de1eef 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1844,6 +1844,9 @@ brw_wm_fs_emit(struct brw_context *brw, struct brw_wm_compile *c,
prog->LinkStatus = false;
ralloc_strcat(&prog->InfoLog, v.fail_msg);
+ _mesa_problem(NULL, "Failed to compile fragment shader: %s\n",
+ v.fail_msg);
+
return false;
}
More information about the mesa-commit
mailing list