vmwgfx: A number of damage fixes
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 8 Nov 2011 13:49:36 +0000 (14:49 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 9 Nov 2011 13:02:17 +0000 (14:02 +0100)
commitd0b493d67afd1b5e8c8397c7938752ecd56c91ba
tree67ed19ad43d496011c167ccb8c8998fee092770e
parentaff799d007c8383321213ad177e5a9deec2b3978
vmwgfx: A number of damage fixes

A damage tracker was sometimes attached to a pixmap in the middle of an
operation. That meant that damage was never registered for that operation
which caused dirty-tracking to fail. Instead, add a damage tracker as
soon as we have storage attached to the pixmap.

Also, when a pixmap was resized, the dirty region trackers could become
stale, and cause DMA operation extending outside of the pixmap with
server crashes as a result. This commit fixes that.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
vmwgfx/vmwgfx_saa.c