summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-02-09 10:23:45 -0800
committerEric Anholt <[email protected]>2012-02-14 10:19:04 -0800
commita7f46eadea4555ed377928d4e3f89db4a445312e (patch)
tree6f8190ba6834ae24f501108c3cf50722cc7acafd /src
parent8cd03b933cf868ff867e2db4a0937005a02fd0e4 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp3
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 6ecaa6c758f..bf59da3a4d6 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;
}