summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/tgsi/Makefile
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-08-13 12:38:58 +0100
committerKeith Whitwell <keithw@vmware.com>2009-08-13 13:02:47 +0100
commit8a7d1e7b7681a4f0be9cee9e62477317dcd09caf (patch)
treec7d3fe0859af2f4707a4013348ef21a93090daa8 /src/gallium/auxiliary/tgsi/Makefile
parent1f40ffca634b8d6699c9b5d153c231e79527317a (diff)
tgsi: add tgsi_ureg, a simplified tgsi shader builder
This is modelled on the nice & easy-to-use facilities we had for building shaders in mesa, eg. in texenvprogram.c and friends. Key points include pass-by-value register structs that can be manipulated in a functional style, eg: negate(swizzle(reg, X,X,X,X)) and per-opcode instruction functions, eg: emit_MOV( p, writemask(dst, 0x1), negate(src)); and similar. Additionally, the interface allows mixed emit of instructions and decls, which are sorted out internally to obey TGSI ordering. Immediates may be emitted at any time and are scanned against existing immediates to try and reduce redundancy. Not all TGSI functionality is accessible through this interface, but most or all of what mesa uses should be.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/Makefile')
-rw-r--r--src/gallium/auxiliary/tgsi/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/Makefile b/src/gallium/auxiliary/tgsi/Makefile
index b4900e8dba..5f0a580b09 100644
--- a/src/gallium/auxiliary/tgsi/Makefile
+++ b/src/gallium/auxiliary/tgsi/Makefile
@@ -16,6 +16,7 @@ C_SOURCES = \
tgsi_sse2.c \
tgsi_text.c \
tgsi_transform.c \
+ tgsi_ureg.c \
tgsi_util.c
include ../../Makefile.template