Skip to content
Snippets Groups Projects
Commit 2af70854 authored by Kenneth Graunke's avatar Kenneth Graunke
Browse files

i965: Use old_bo->align when growing batch/state buffer instead of 4096.


The intention here is make the new BO use the same alignment as the old
BO.  This isn't strictly necessary, but we would have to update the
'alignment' field in the validation list when swapping it out, and we
don't bother today.

The batch and state buffers use an alignment of 4096, so this should be
equivalent - it's just clearer than cut and pasting a magic constant.

Fixes: 2dfc119f "i965: Grow the batch/state buffers if we need space and can't flush."
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
Reviewed-by: default avatarJordan Justen <jordan.l.justen@intel.com>
parent 2c4861e4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment