intel/isl: Generate phys_total_el from isl_calc_phys_extent
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 May 2017 15:28:47 +0000 (08:28 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 1 Jun 2017 22:33:45 +0000 (15:33 -0700)
commitcb8cdab8e8479488d4aabb2553c099f1f99c185b
tree9bd6f101ed55c7550ec6d6316c0b6d6b386915af
parent918f41bb2968da20f756900181f0aa2c59edc99c
intel/isl: Generate phys_total_el from isl_calc_phys_extent

The only surface layout for which slice0 makes any sense is GEN4_2D.
Move all of the slice0 stuff into isl_calc_phys_total_extent_el_gen4_2d
and make the others trivially return the total size in surface elements.
As a side-effect, array_pitch_el_rows is now returned from these helpers
as well.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/isl/isl.c