isl: Fix row pitch for linear buffers
authorChad Versace <chad.versace@intel.com>
Fri, 1 Jan 2016 17:52:57 +0000 (09:52 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 4 Jan 2016 17:57:25 +0000 (09:57 -0800)
commit05c22f2d74309fec3432523a26e7772e1863af2f
tree7e1c5ff64dc67dabe533f4f371dd8eee87522eff
parenta827b553d9c13f7c31244667daf320add65bb96b
isl: Fix row pitch for linear buffers

isl always aligned the row pitch to the surface's image alignment.  This
was sometimes wrong when the surface backed a VkBuffer. For a VkBuffer,
the surface's row pitch is set by VkBufferImageCopy::bufferRowLength,
whose required alignment is only that of the VkFormat.

In particular, VkBuffer rows are packed in many dEQP and Crucible tests.
And packed rows are rarely aligned to the surface's image alignment.

Fixes: dEQP-VK.pipeline.image.view_type.2d.format.r8g8b8a8_unorm.size.13x13
src/isl/isl.c