isl: Add func isl_surf_get_image_offset_sa
authorChad Versace <chad.versace@intel.com>
Sat, 12 Dec 2015 01:14:52 +0000 (17:14 -0800)
committerChad Versace <chad.versace@intel.com>
Tue, 15 Dec 2015 16:46:09 +0000 (08:46 -0800)
commit64f0ee73e0ade5b6f888b143a1db58ffabfffd99
treebbcb82e2e71afb6e5e0190ab3b2c2007d4db1c1d
parent53504b884e58af6bcf92e3fd258c7d9d3332c1fc
isl: Add func isl_surf_get_image_offset_sa

The function calculates the offset to a subimage within the surface, in
units of surface samples.

All unit tests pass with `make check`. (Admittedly, though, there are
too few unit tests).
src/isl/Makefile.am
src/isl/isl.c
src/isl/isl.h
src/isl/tests/.gitignore [new file with mode: 0644]
src/isl/tests/isl_surf_get_image_offset_test.c [new file with mode: 0644]