st/vega: Fix vgReadPixels with a subrectangle.
authorChia-I Wu <olv@lunarg.com>
Sun, 21 Nov 2010 10:58:47 +0000 (18:58 +0800)
committerChia-I Wu <olv@lunarg.com>
Sun, 21 Nov 2010 11:32:22 +0000 (19:32 +0800)
commitb8f6cb380951463f86e6f9e7bb3a18a87fe2f53e
tree1630c86b6dee79a763e2d87aff52470ba3c4afef
parente8bbaff22e75953b1c8a259753dbd8658998305e
st/vega: Fix vgReadPixels with a subrectangle.

Fix a crash when the subrectangle is not inside the fb.  Fix wrong
pipe transfer when sx > 0 or sy + height != fb->height.

This fixes "readpixels" demo.
src/gallium/state_trackers/vega/api_images.c