isl/state: Use the layout for computing qpitch rather than dimensions
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 5 Jun 2016 04:22:21 +0000 (21:22 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 19:26:43 +0000 (12:26 -0700)
commit5d24e9cfa126971518be662e57021322ebf67a9a
tree3f71ba3d814e7e0a4679e529237459f81f02a2c3
parent6a43204afa40359f73684d3ccc7db8c4dad6288b
isl/state: Use the layout for computing qpitch rather than dimensions

For depth/stencil 1-D textures on SKL, we want them layed out in the old
format that has been used since gen4.  In order for the surface state
fill-out code to handle, this it needs to distinguish based on layout
rather than just dimensionality.

Reviewed-by: Chad Versace <chad.versace@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/isl/isl_surface_state.c