isl/state: Set SurfaceArray based on the surface dimension
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Jun 2016 22:30:00 +0000 (15:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 19:26:43 +0000 (12:26 -0700)
commitbb326f7b01daeb97e544873f20a23614ed54c548
tree7f149e0f980bb0f15ef201f786a83f8bc535389b
parentd050ffbce950f8ececd12200145eb209819a421e
isl/state: Set SurfaceArray based on the surface dimension

According to the PRM, you can't set SurfaceArray for 3D or buffer textures.
There doesn't seem to be a good reason not to set it when we can.  On the
other hand, if we don't set it we can end up getting strange results for
1-layer array textures such as textureSize() returning the wrong results.

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