summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/nvfragprog.h
Commit message (Collapse)AuthorAgeFilesLines
* Unify vertex/fragment program instuctions.Brian Paul2005-11-051-168/+0
| | | | Based on patch by Ian (#4967) but also unify instruction opcodes.
* Rename FRAG_OUTPUT_* tokens to FRAG_RESULT_* to match vertex program conventionBrian Paul2005-11-021-3/+3
|
* Several fp and vp tweaks:Keith Whitwell2005-11-011-9/+0
| | | | | | | | | | | | | | | | | | | | | | - Renumber VERT_RESULT_* values so that they match the numbers of the corresponding FRAG_ATTRIB_ values. - Add ctx->VertexProgram._Current and FragmentProgram._Current values which point to either the current client-supplied program if enabled, or otherwise to the current mesa-internal program. Thus this program is always the correct one for the current state, providing that the mesa flags to turn on automatic generation are enabled. - Add callbacks to ctx->Driver.BindProgram() in texenvprogram.c and t_vp_build.c so that the driver knows when the generated program changes. This is cleaner than trying to code all the possible _NEW_* flags into the driver, and more precise as well. - Add a UsesKill flag to identify fragment programs with that instruction, as these can require special treatment. - Move the FRAG_OUTPUT values to mtypes.h, near to similar defn's.
* Lots of clean-up in arb program parser.Brian Paul2005-10-301-6/+15
| | | | Use new _mesa_init_fp/vp_instruction() function to initialize instructions.
* Sort instructions for clarity.Keith Whitwell2005-05-041-33/+33
|
* Reduce the size of mesa's internal fragment and vertex programKeith Whitwell2005-04-211-23/+25
| | | | | representations by switching to packed structures for registers and instructions.
* Added PRINT instruction for GL_NV_fragment_program.Brian Paul2004-12-181-2/+4
|
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+1
| | | | 1015696)
* Audit/fixes for NV/ARB TEX, TXP, TXB, TXD instructions.Brian Paul2004-04-181-1/+2
| | | | | | Some texture instructions were using wrong LOD. Fixed interpolate_texcoords() so it doesn't do texcoord projective division when using a fragment program. The TXP instruction does that.
* Implement ARB_f_p KIL correctly.Brian Paul2004-04-021-1/+2
|
* Accomodate ARB_fp XPD opcode separately from NV_fp's X2D.Keith Whitwell2004-03-291-1/+2
|
* Moved from src/mesa/mainMichal Krol2004-03-291-0/+160