aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_cs.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-07 17:08:23 +1100
committerTimothy Arceri <[email protected]>2017-01-06 11:21:40 +1100
commit3d2485f011c4f1c7de35871ca359a84415bfcc06 (patch)
treeba46854fd67f4ffdf32dde2a4c4c76eb14a04f6c /src/mesa/drivers/dri/i965/brw_cs.c
parentbe9a6a7eb77aa95154d4bd7876c37916a7ba9269 (diff)
i965: get InfoLog and LinkStatus via the pointer in gl_program
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_cs.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_cs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cs.c b/src/mesa/drivers/dri/i965/brw_cs.c
index 522ddb9ba6e..f220846aa2c 100644
--- a/src/mesa/drivers/dri/i965/brw_cs.c
+++ b/src/mesa/drivers/dri/i965/brw_cs.c
@@ -69,10 +69,10 @@ brw_codegen_cs_prog(struct brw_context *brw,
memset(&prog_data, 0, sizeof(prog_data));
if (cp->program.info.cs.shared_size > 64 * 1024) {
- prog->data->LinkStatus = false;
+ cp->program.sh.data->LinkStatus = false;
const char *error_str =
"Compute shader used more than 64KB of shared variables";
- ralloc_strcat(&prog->data->InfoLog, error_str);
+ ralloc_strcat(&cp->program.sh.data->InfoLog, error_str);
_mesa_problem(NULL, "Failed to link compute shader: %s\n", error_str);
ralloc_free(mem_ctx);
@@ -122,8 +122,8 @@ brw_codegen_cs_prog(struct brw_context *brw,
&prog_data, cp->program.nir, st_index,
&program_size, &error_str);
if (program == NULL) {
- prog->data->LinkStatus = false;
- ralloc_strcat(&prog->data->InfoLog, error_str);
+ cp->program.sh.data->LinkStatus = false;
+ ralloc_strcat(&cp->program.sh.data->InfoLog, error_str);
_mesa_problem(NULL, "Failed to compile compute shader: %s\n", error_str);
ralloc_free(mem_ctx);