i965: print error messages if gs fails to compile
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 21 Jul 2016 04:07:01 +0000 (14:07 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 21 Jul 2016 05:05:05 +0000 (15:05 +1000)
We do this for all other stages.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_gs.c

index d9f18c4..67a2480 100644 (file)
@@ -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;
    }