tgsi: adds tgsi utility to transform a shader to support point sprite
authorCharmaine Lee <charmainel@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
commitbca238d4f55dd0a9325132c73b1acade51017ba3
tree54d253c114c6b70e7e5993f7e15c116c426ae661
parenta65bdf5f47689b52ec97181ec870b089872b508e
tgsi: adds tgsi utility to transform a shader to support point sprite

This adds a tgsi utility tgsi_add_point_sprite to transform a geometry
shader to emulate wide points by drawing quads. This utility adds an
extra output for the original point position if the point position is
to be written to a stream output buffer. It also assumes the driver will
add a constant for inverse viewport scale after the user defined constants.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/tgsi/tgsi_point_sprite.c [new file with mode: 0644]
src/gallium/auxiliary/tgsi/tgsi_point_sprite.h [new file with mode: 0644]