mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 14:10:09 +01:00
i965: Correct the size of the state batch space allocated for binding tables.
In the gen6 GS case, we were under-counting and so other state would get smashed. In the VS case, we were over-counting, so everything was fine. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
9fa6377a75
commit
6ca50f381c
2 changed files with 2 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ brw_vs_upload_binding_table(struct brw_context *brw)
|
|||
* space for the binding table.
|
||||
*/
|
||||
bind = brw_state_batch(brw, AUB_TRACE_BINDING_TABLE,
|
||||
sizeof(uint32_t) * BRW_MAX_SURFACES,
|
||||
sizeof(uint32_t) * BRW_MAX_VS_SURFACES,
|
||||
32, &brw->vs.bind_bo_offset);
|
||||
|
||||
/* BRW_NEW_SURFACES and BRW_NEW_VS_CONSTBUF */
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ brw_gs_upload_binding_table(struct brw_context *brw)
|
|||
* space for the binding table.
|
||||
*/
|
||||
bind = brw_state_batch(brw, AUB_TRACE_BINDING_TABLE,
|
||||
sizeof(uint32_t) * BRW_MAX_SURFACES,
|
||||
sizeof(uint32_t) * BRW_MAX_GS_SURFACES,
|
||||
32, &brw->gs.bind_bo_offset);
|
||||
|
||||
/* BRW_NEW_SURFACES */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue