isl: Fix isl_surf_get_image_intratile_offset_el()
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 24 Feb 2016 20:10:44 +0000 (12:10 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Sat, 27 Feb 2016 00:59:36 +0000 (16:59 -0800)
commit265d4c415ca6b41bdd9a4a3e9f311d8f6e69cef1
tree3d7dd9139b84a5675e920eeebb61cf801aa93042
parent6bb6b5c341a5a75763d565565f164b63cff3388a
isl: Fix isl_surf_get_image_intratile_offset_el()

Consecutive tiles are separated by the size of the tile, not by the
logical tile width.

v2: Remove extra subtraction (Ville)
    Add parenthesis (Jason)
v3: Update the unit tests for the function

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/intel/isl/isl.c
src/intel/isl/tests/isl_surf_get_image_offset_test.c