ureg: add a mechanism to get the built tokens rather than a full shader
authorKeith Whitwell <keithw@vmware.com>
Sat, 12 Sep 2009 21:18:50 +0000 (14:18 -0700)
committerKeith Whitwell <keithw@vmware.com>
Sat, 12 Sep 2009 21:18:50 +0000 (14:18 -0700)
commit11f41f54cf4ce1cdc19c4b5c45ed8d2083d96831
treeeb5552ff6cb95eb15e4f2f8159fb3958be4b750f
parentc23894295b593b9a8561e9775199e1c78ea4435d
ureg: add a mechanism to get the built tokens rather than a full shader

Previously ureg would always call the driver's create-shader function.  This
allows the caller the opportunity to hold onto the tokens if it needs to
reuse them, eg. to create an internal draw shader.
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h