diff options
author | Timothy Arceri <[email protected]> | 2016-10-27 19:15:19 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-11-17 12:52:24 +1100 |
commit | 67b9c263425b748a292606dee079c46d87c48c3b (patch) | |
tree | 9d8084e74cdbdbee5317f4cbf47c733506861574 /src/mesa/drivers/dri/i965/brw_shader.cpp | |
parent | 5581f2a8f27cda7a9d239ab655829d9159af5544 (diff) |
i965: get num_abos from shader_info rather than gl_linked_shader
This is a step towards freeing gl_linked_shader after linking.
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index db797184db5..5ab8ada8bf0 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -1224,9 +1224,9 @@ brw_assign_common_binding_table_offsets(gl_shader_stage stage, stage_prog_data->binding_table.gather_texture_start = 0xd0d0d0d0; } - if (shader && shader->NumAtomicBuffers) { + if (prog->info.num_abos) { stage_prog_data->binding_table.abo_start = next_binding_table_offset; - next_binding_table_offset += shader->NumAtomicBuffers; + next_binding_table_offset += prog->info.num_abos; } else { stage_prog_data->binding_table.abo_start = 0xd0d0d0d0; } |