aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-07 16:43:39 +1100
committerTimothy Arceri <[email protected]>2017-01-06 11:21:40 +1100
commitbe9a6a7eb77aa95154d4bd7876c37916a7ba9269 (patch)
tree156cf760c80dd4f64c17f7886fe8c9418c8d8a03 /src/mesa/drivers/dri
parent234211ec8ded86fbfc324068498629a9df769393 (diff)
i965: get shared_size from shader_info rather than gl_shader_program
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cs.c b/src/mesa/drivers/dri/i965/brw_cs.c
index e4d82cf738c..522ddb9ba6e 100644
--- a/src/mesa/drivers/dri/i965/brw_cs.c
+++ b/src/mesa/drivers/dri/i965/brw_cs.c
@@ -68,7 +68,7 @@ brw_codegen_cs_prog(struct brw_context *brw,
memset(&prog_data, 0, sizeof(prog_data));
- if (prog->Comp.SharedSize > 64 * 1024) {
+ if (cp->program.info.cs.shared_size > 64 * 1024) {
prog->data->LinkStatus = false;
const char *error_str =
"Compute shader used more than 64KB of shared variables";
@@ -78,7 +78,7 @@ brw_codegen_cs_prog(struct brw_context *brw,
ralloc_free(mem_ctx);
return false;
} else {
- prog_data.base.total_shared = prog->Comp.SharedSize;
+ prog_data.base.total_shared = cp->program.info.cs.shared_size;
}
assign_cs_binding_table_offsets(devinfo, prog, &cp->program, &prog_data);