st/nine: Respect block alignment on surface lock
authorPatrick Rudolph <siro@das-labor.org>
Thu, 22 Oct 2015 13:46:16 +0000 (15:46 +0200)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commit0b35da59deff0d6671649a6aedc10b3c81aeb8a7
tree56e5f6a5af443dae6e739c00f49e66cdc1fc2ec4
parent56b4222b299ff08da4eda63fcc608dc77fc585f1
st/nine: Respect block alignment on surface lock

Respect block alignment for ATI1/ATI2 format when trying to lock a
surface using LockRect().
Fixes failing WINE tests device.c test_surface_blocks() tests.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/surface9.c