intel/isl: Allow valign2 for texture-only Y-tiled surfaces on gen7
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 9 Sep 2016 15:57:14 +0000 (08:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Sep 2016 02:44:05 +0000 (19:44 -0700)
commit883086500b130e4667108a52bca9f37defcd7564
tree268ce82c720fc699f2f5ae0b3db44604abb223eb
parent54db5afd2c8bd3a32658b3fef698c6896f6a297b
intel/isl: Allow valign2 for texture-only Y-tiled surfaces on gen7

The restriction that Y-tiled surfaces must have valign == 4 only aplies to
render targets but we were applying it universally.  This causes problems
if ISL_FORMAT_R32G32B32_FLOAT is used because it requires valign == 2; this
should be okay because you can't render to that format.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/intel/isl/isl_gen7.c