st/vega: Overhaul renderer with renderer states.
authorChia-I Wu <olv@lunarg.com>
Fri, 26 Nov 2010 14:48:10 +0000 (22:48 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 1 Dec 2010 03:23:48 +0000 (11:23 +0800)
commit59309337e40106f734efc1e33f956f6f1f4301ac
tree2a9c454d945a5a78f9b69b97affd1d7764221d9d
parent709e57ae4f12ea16020993e6afa88edd5bed5908
st/vega: Overhaul renderer with renderer states.

Renderer states are high-level states to perform specific tasks.  The
renderer is initially in INIT state.  In that state, the renderer is
used for OpenVG pipeline.

This commit adds a new COPY state to the renderer.  The state is used
for copying between two pipe resources using textured drawing.  It can
be used for vgCopyImage, for example.

Rather than modifying every user of the renderer, this commit instead
modifies renderer_copy_texture to use the COPY state internally.
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/renderer.h