intel/isl/gen9: Only use the magic 1D alignment for GEN9_1D surfaces
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 24 Aug 2016 04:46:58 +0000 (21:46 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 25 Aug 2016 21:11:15 +0000 (14:11 -0700)
commit8bdf605214874804369a879ca7d2f2de01e2af09
treebe65e9547495cd7318ce001a0aa745b9fcca5e4b
parentcda1a5dc0e1b7660d25513261358c92d7b36940c
intel/isl/gen9: Only use the magic 1D alignment for GEN9_1D surfaces

If the surface has a layout of GEN4_2D then we need to compute a normal 2D
alignment and not use the magic linewar 1D alignment.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/intel/isl/isl_gen9.c