i965: Fix {src, dst}_pitch alignment check for XY_SRC_COPY_BLT
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 11 Aug 2015 23:31:39 +0000 (16:31 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Mon, 28 Sep 2015 19:43:43 +0000 (12:43 -0700)
commit0fa39bff19dc2fbd3c184bd0e1267c86bd5040d9
tree12678585b70f7095965349ee36fb95467f23f15d
parente83b07aa7b124184decd68a64d970e8f408f8725
i965: Fix {src, dst}_pitch alignment check for XY_SRC_COPY_BLT

Current code checks the alignment restrictions only for Y tiling.
From Broadwell PRM vol 10:

 "pitch is of 512Byte granularity for Tile-X: This means the tiled-x
  surface pitch can be (512, 1024, 1536, 2048...)/4 (in Dwords)."

This patch adds the restriction for X tiling as well.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/mesa/drivers/dri/i965/intel_blit.c