iris: Add helper functions to get tile offset
authorSagar Ghuge <sagar.ghuge@intel.com>
Tue, 16 Jul 2019 17:48:19 +0000 (10:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Aug 2019 07:50:43 +0000 (00:50 -0700)
commit61c0637afb4ff760dd8dbe138266820adc921ce5
tree3e72daab2746c6043a368ac156dd644ce4ce9ed3
parent7e816991cc3c8baebbbff2f64e91202728c696e0
iris: Add helper functions to get tile offset

All helper functions are ported from i965 driver.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_resource.c
src/gallium/drivers/iris/iris_resource.h