isl: Rework the get_intratile_offset function
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Mar 2016 23:15:54 +0000 (16:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Apr 2016 22:57:58 +0000 (15:57 -0700)
commitb37502b9832f02626b0caca22500b46ebbbe8007
tree522de991713267d1351cac6b17b992784dde7278
parent4caba940869602b750e21a444523b068b1bea339
isl: Rework the get_intratile_offset function

The old function tried to work in elements which isn't, strictly speaking,
a valid thing to do.  In the case of a non-power-of-two format, there is no
guarantee that the x offset into the tile is a multiple of the format
block size.  This commit refactors it to work entirely in terms of a tiling
(not a surface) and bytes/rows.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/isl/isl.c
src/intel/isl/isl.h
src/intel/vulkan/anv_meta_blit2d.c