tgsi: add tgsi utility to transform a fragment shader to support aa point
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)
commit14f35194d89901a04cb2180a788f90e1bedf5399
treee5b09adc194fe0fafe9fd9b89f587080c5ff960c
parentbca238d4f55dd0a9325132c73b1acade51017ba3
tgsi: add tgsi utility to transform a fragment shader to support aa point

This adds a tgsi utility tgsi_add_aa_point to transform a fragment shader
to support anti-aliased wide point by computing the fragment distance from
the point center. This utility assumes the geometry shader is emitting
an extra generic output with point coord data. The semantic index of
this generic output is passed to the tgsi_add_aa_point utility.

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