Mesa (master): i965: print error messages if gs fails to compile
Timothy Arceri
tarceri at kemper.freedesktop.org
Thu Jul 21 05:05:13 UTC 2016
Module: Mesa
Branch: master
Commit: 4f89cf4941db0a5cd8a85b943121840000cf8e4f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4f89cf4941db0a5cd8a85b943121840000cf8e4f
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date: Thu Jul 21 14:07:01 2016 +1000
i965: print error messages if gs fails to compile
We do this for all other stages.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_gs.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c
index d9f18c4..67a2480 100644
--- a/src/mesa/drivers/dri/i965/brw_gs.c
+++ b/src/mesa/drivers/dri/i965/brw_gs.c
@@ -163,6 +163,12 @@ brw_codegen_gs_prog(struct brw_context *brw,
&prog_data, gs->Program->nir, prog,
st_index, &program_size, &error_str);
if (program == NULL) {
+ if (prog) {
+ ralloc_strcat(&prog->InfoLog, error_str);
+ }
+
+ _mesa_problem(NULL, "Failed to compile geometry shader: %s\n", error_str);
+
ralloc_free(mem_ctx);
return false;
}
More information about the mesa-commit
mailing list