Pack fragment program outputs to be consistant with vertex programs.
authorBrian <brian.paul@tungstengraphics.com>
Tue, 9 Oct 2007 20:55:22 +0000 (14:55 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 9 Oct 2007 20:55:22 +0000 (14:55 -0600)
commitbc139a19b00f8686caa8db7c56af2087f26e369a
tree4e598ff84144599ad115ed9abdaf8b21cc2f33b0
parent342bc50c3d8765ea4ab50aa7d77df5c86c478c61
Pack fragment program outputs to be consistant with vertex programs.

Previously, output[0] was always Z and output[1] was color.  Now output[0]
will be color if Z is not written.
In shade_quad() use the semantic info to determine which quantity is in
which output slot.
src/mesa/pipe/p_state.h
src/mesa/pipe/softpipe/sp_quad_fs.c
src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c
src/mesa/state_tracker/st_program.c