r300: Remove a warning when vertex programs produce an unused output
authorNicolai Haehnle <nhaehnle@gmail.com>
Mon, 26 Mar 2007 20:20:46 +0000 (22:20 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 26 Mar 2007 20:25:06 +0000 (22:25 +0200)
commit0426d3c0c85b652c2c4e8509f709863e08644295
tree267800f01e915a38222aab71acd44eab5ef1811c
parentb53745ce914d66f98ae7bea3e6ee0d05940af787
r300: Remove a warning when vertex programs produce an unused output

As far as we know, the hardware prefers outputs packed tightly together
with no holes caused by outputs that are not even read by the fragment
program. Therefore, we slightly rewrite vertex programs in this case.

It would be interesting to test this interaction between vertex programs
and fragment programs further, because some of that rewrite may be
unnecessary. However, play it safe for now and don't change the current
behaviour.
src/mesa/drivers/dri/r300/r300_vertprog.c