i965: Drop brw_bo_alloc in ARB_indirect_parameters implementation.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Oct 2017 17:19:21 +0000 (10:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Oct 2017 19:22:29 +0000 (12:22 -0700)
commitfe7fab4be55983fa8abc0172393afea8b0fed416
tree860f9befbe2dac6144581bbf91d163463c91d922
parente401cfa28a6e32d7081f9de998e731965ce966fb
i965: Drop brw_bo_alloc in ARB_indirect_parameters implementation.

The original implementation allocated a new BO here, but we decided to
switch to intel_upload_space, which returns a reference to the current
upload BO.  We accidentally kept the brw_bo_alloc, even though it's no
longer necessary - intel_upload_space will immediately unreference it,
causing us to allocate and immediately free a buffer.

Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/mesa/drivers/dri/i965/brw_draw.c