anv/gen9: Fix oob lookup of surface halign, valign
authorChad Versace <chad.versace@intel.com>
Tue, 5 Jan 2016 22:32:44 +0000 (14:32 -0800)
committerChad Versace <chad.versace@intel.com>
Wed, 6 Jan 2016 17:38:57 +0000 (09:38 -0800)
commitdcb9c11dc707476a555a20c5940339f31ed53610
tree097beba1392af5d6c08253954f3893ddc64cfefa
parent94566d9b680f8ddb775213b4569d71e9c43d4772
anv/gen9: Fix oob lookup of surface halign, valign

For 1D surfaces and for surfaces with Yf or Ys tiling, the hardware
ignores SurfaceVerticalAlignment and SurfaceHorizontalAlignment.
Moreover, the anv_halign[] and anv_valign[] lookup tables may not even
contain the surface's actual alignment values. So don't do the lookup
for those surfaces.
src/vulkan/gen8_state.c