diff options
author | Timothy Arceri <[email protected]> | 2016-11-08 10:25:57 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-01-03 12:20:10 +1100 |
commit | b880281f0bb3f4cd65d38ae13a0db2dba6d7a5ed (patch) | |
tree | 060285ed5f3f4a1446aa95f5cffa452dd99e4048 /src/mesa/drivers/dri/i965/brw_tcs.c | |
parent | 340b22c217f31330ae3bfaa523b574d98ca53e89 (diff) |
i965: get InfoLog and LinkStatus via the shader program data pointer in gl_program
This removes another dependency on gl_shader_program in the codegen
functions.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_tcs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_tcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tcs.c b/src/mesa/drivers/dri/i965/brw_tcs.c index 03986a9e189..f890ccf0296 100644 --- a/src/mesa/drivers/dri/i965/brw_tcs.c +++ b/src/mesa/drivers/dri/i965/brw_tcs.c @@ -265,9 +265,9 @@ brw_codegen_tcs_prog(struct brw_context *brw, brw_compile_tcs(compiler, brw, mem_ctx, key, &prog_data, nir, st_index, &program_size, &error_str); if (program == NULL) { - if (shader_prog) { - shader_prog->data->LinkStatus = false; - ralloc_strcat(&shader_prog->data->InfoLog, error_str); + if (tep) { + tep->program.sh.data->LinkStatus = false; + ralloc_strcat(&tep->program.sh.data->InfoLog, error_str); } _mesa_problem(NULL, "Failed to compile tessellation control shader: " |