diff options
author | Eric Anholt <[email protected]> | 2013-11-01 17:43:43 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-11-05 15:39:45 -0800 |
commit | ff337bc80069c74c6ad5d4ce84cd2029282d9e93 (patch) | |
tree | 81874fe9931bd534dfcfe3548eaa3adfc3140ab2 /src/mesa/drivers/dri/i965/brw_vs_state.c | |
parent | 3f319eef76a31776085accb38c06851bc04f64b8 (diff) |
i965: Tell the unit states how many binding table entries we have.
Before the series with 3c9dc2d31b80fc73bffa1f40a91443a53229c8e2 to
dynamically assign our binding table indices, we didn't really track our
binding table count per shader, so we never filled in these fields.
Affects cairo-gl trace runtime by -2.47953% +/- 1.07281% (n=20)
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_state.c b/src/mesa/drivers/dri/i965/brw_vs_state.c index cdffac3b385..216b3dd77af 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_state.c +++ b/src/mesa/drivers/dri/i965/brw_vs_state.c @@ -79,7 +79,8 @@ brw_upload_vs_unit(struct brw_context *brw) */ vs->thread1.single_program_flow = (brw->gen == 5); - vs->thread1.binding_table_entry_count = 0; + vs->thread1.binding_table_entry_count = + brw->vs.prog_data->base.base.binding_table.size_bytes / 4; if (brw->vs.prog_data->base.total_scratch != 0) { vs->thread2.scratch_space_base_pointer = |