drisw: fix image stride calculation for 16-bit.
authorDave Airlie <airlied@gmail.com>
Thu, 22 Mar 2012 11:56:43 +0000 (11:56 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 25 Mar 2012 16:15:23 +0000 (17:15 +0100)
commitd6c5ad52b2473064f0b3e031a2e1b59480c68c43
treec08b8b4e21793c6268e2cf9b2ee4a03d3a9cc0c4
parentba3a4d79a7bad959c0d9efbe0daa8d73c281d664
drisw: fix image stride calculation for 16-bit.

If you ran g-s in 16-bpp we'd do a bunch of memory corruption.

now it just misrenders for some other reasons.

applies to stable.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/dri/sw/drisw.c