intel/isl: Add a helper to get a subimage surface
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 11 Jul 2017 21:27:25 +0000 (14:27 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 23 Jul 2017 04:41:12 +0000 (21:41 -0700)
commit5de4209f91c466af6a28fee9c80c398a8ed9b95d
tree169317cfcc43d0694c274530c74ba291d1d16a0a
parent72bc38cfc592505c207bd5cac54bc8dd8289cf72
intel/isl: Add a helper to get a subimage surface

We already have a helper for doing this in BLORP, this just moves the
logic into ISL where we can share it with other components.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/blorp/blorp_blit.c
src/intel/isl/isl.c
src/intel/isl/isl.h