mesa: Fix fragment.color (no index) writes with OPTION ARB_draw_buffers.
authorEric Anholt <eric@anholt.net>
Wed, 20 Apr 2011 23:49:19 +0000 (16:49 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 23 Apr 2011 20:21:57 +0000 (13:21 -0700)
commitd7f4c4e1b187552ede397f00fb56a6f0bb724ce1
tree063b79e932c5b46181516edd961dfcbf64d0466b
parent79bde19ef9e13d5db30d0516d9e7eae6a3a8d32a
mesa: Fix fragment.color (no index) writes with OPTION ARB_draw_buffers.

Fixes a bug in Trine where fragment.color would write
FRAG_RESULT_COLOR (which is interpreted by drivers as being the "write
this to all color buffers" option) instead of FRAG_RESULT_DATA0 (just
the first target).

Fixes piglit ATI_draw_buffers/arbfp-no-index.
src/mesa/program/program_parse.y