i965/blorp: Move surface offset calculations into a helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Jun 2016 03:48:20 +0000 (20:48 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Aug 2016 21:46:22 +0000 (14:46 -0700)
commit2095f932ef9e7ef7307a39694a89ebd772a19868
treee6da4d991c4212ac57e4c36efe3ae86d79b0f474
parent90ab43d1bbb825cef6fe9acd04a1e8e18cddb372
i965/blorp: Move surface offset calculations into a helper

The helper does a full transformation on the surface to turn it into a new
2-D single-layer single-level surface representing the original layer and
level in memory.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_blorp.c