summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-07-21 14:07:01 +1000
committerTimothy Arceri <[email protected]>2016-07-21 15:05:05 +1000
commit4f89cf4941db0a5cd8a85b943121840000cf8e4f (patch)
tree0fea1e5fc1c8af953c2bde571d8bfe5c2807f7e6 /src/mesa/drivers
parentb463b1d7cce2e9848b5937d1431c74f27e26edb3 (diff)
i965: print error messages if gs fails to compile
We do this for all other stages. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_gs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c
index d9f18c46549..67a2480a2a5 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;
}