On nv30/nv40 support for patching fragment programs is already
necessary (constants must be patched in as immediates), and this can
be handled by just patching the end of the fragment program to include
a variable number of instructions to copy a temp to COLOR[x].

It's possible that there could be a hardware mechanism too, haven't checked.

If other MRT-capable hardware already has this kind of fragment
program patching or supports this in hardware, then a new TGSI
semantic or register file can be added for this, and drivers can
easily implement that without recompilation.

Drivers could also just unconditionally write all color outputs as a
first implementation or if that doesn't affect performance.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to