i965: Make a helper for recreating growing buffers.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 7 Jan 2018 04:34:35 +0000 (20:34 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 17 Jan 2018 21:13:26 +0000 (13:13 -0800)
commit81ca8e69e327f07f57d597fa6ce23ff67b932de8
tree26ade56a38bb6cd91df4b8c73bd94bee50172d37
parent02c1c25b1a620a336f2e18d39bba188635363f24
i965: Make a helper for recreating growing buffers.

Now that we have two of these, we're duplicating a bunch of this logic.
The next commit will add more logic, which would make the duplication
seem worse.

This ends up setting EXEC_OBJECT_CAPTURE on the batch, which isn't
necessary (it's already captured), but it should be harmless.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/intel_batchbuffer.c