st/vega: Fix paint coordinates transformations.
authorChia-I Wu <olv@lunarg.com>
Tue, 30 Nov 2010 18:30:59 +0000 (02:30 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 1 Dec 2010 03:31:00 +0000 (11:31 +0800)
commitb06de80843e7d096bed4ae03ddc5e2842f1876af
tree37fd7f50f92ed6822282a64a9b47c32648120667
parentca8bc9c05b2126e949425dc967923c27f62ef378
st/vega: Fix paint coordinates transformations.

Depending on whether vgDrawPath(mode), vgDrawImage, or vgDrawGlyph[s] is
called, different paint-to-user and user-to-surface matrices should be
used to derive the sample points for the paint.

This fixes "paint" demo.
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/matrix.h
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/paint.h
src/gallium/state_trackers/vega/path.c
src/gallium/state_trackers/vega/shader.c
src/gallium/state_trackers/vega/shader.h
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/vega/vg_context.h