intel: Fix pitch handling for linear blits.
authorEric Anholt <eric@anholt.net>
Wed, 28 Dec 2011 01:22:30 +0000 (17:22 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 4 Jan 2012 17:51:17 +0000 (09:51 -0800)
commit8aa7fa770c4ae7660b37ea9d8f496bd6e62d3df8
tree6d2d4748bdd848dd875f17f4b219c9988c06075b
parent15e309cf84444a8f9ce7f7c86f0a0f391721bc50
intel: Fix pitch handling for linear blits.

The new assert in intelEmitCopyBlit() gets angry if we don't align to
dwords.  Rather than make the assert have a special case for height ==
1 on the assumption that the hardware doesn't use it in that case,
just supply a correct pitch.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43214
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_blit.c