intel/isl: Add a helper for getting the byte/tile offset of a subimage
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 May 2017 16:42:25 +0000 (09:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 1 Jun 2017 22:33:58 +0000 (15:33 -0700)
commitd065a9540cb4c4f064f695194e35c8c1c3d2b419
tree248dee0844031b54d8e057cef44530cbbe59eb1b
parentb178762d051bad0f373631908b8ce7b5e9ba8d05
intel/isl: Add a helper for getting the byte/tile offset of a subimage

Frequently, get_image_offset_sa is combined with get_intratile_offset_sa
so it makes sense to have a single helper to do both.  If the caller
doesn't want the intratile offsets, it can simply pass NULL and ISL will
assert that they are 0.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp_blit.c
src/intel/isl/isl.c
src/intel/isl/isl.h