intel: Add and use helpers for level0 extent
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 23 May 2019 20:44:52 +0000 (13:44 -0700)
committerNanley Chery <nanleychery@gmail.com>
Thu, 27 Jun 2019 23:38:37 +0000 (23:38 +0000)
commitfb1350c76f1525e6bd320cef62d55aff19ec3f05
treecf27fcd8a5ba2df254d30278c72c1ecab331e5aa
parent0ba0c0c15c633a5a3b7a4651a743f800f30bcbf6
intel: Add and use helpers for level0 extent

Prepare for a bug fix by adding and using helpers which convert
isl_surf::logical_level0_px and isl_surf::phys_level0_sa to units of
surface elements.

v2:
- Update iris (Ken).
- Update anv.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_state.c
src/intel/blorp/blorp_blit.c
src/intel/isl/isl.h
src/intel/vulkan/anv_image.c