i965/miptree: Move the access_raw call to the individual map functions
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 11 May 2018 19:34:44 +0000 (12:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 May 2018 22:46:37 +0000 (15:46 -0700)
commitb499b85b0f2cc0c82b7c9af91502c2814fdc8e67
treea9b1cbb8c0aa795c5ddef209fe1180e2c9576931
parentf566a1264c131b5883e5bb0e293a94ef1378c43e
i965/miptree: Move the access_raw call to the individual map functions

The only function that doesn't need to call access_raw is map_blit.  If
it takes the blitter path, it will happen as part of intel_miptree_copy.
If map_blit takes the blorp path, brw_blorp_copy_miptrees will handle
doing whatever resolves are needed.  This should save us resolves in
quite a few cases and will probably help performance a bit.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c