iris: Move cached BO allocation into a helper function.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 26 May 2019 22:52:56 +0000 (15:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 May 2019 02:41:52 +0000 (19:41 -0700)
commit76c5a196681e2cbcc894582395ebe54e41f5c6ca
treef430ccb56aebe8c5719e8bc62efddea13b5bbaa9
parentcea6671395864d8b4c5020193b2f84955de827e4
iris: Move cached BO allocation into a helper function.

There's enough going on here to warrant a helper.  This also simplifies
the control flow and eliminates the last non-error-case goto.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/gallium/drivers/iris/iris_bufmgr.c