summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/arbprogparse.h
Commit message (Collapse)AuthorAgeFilesLines
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-1/+1
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* Some structure renaming. Prefix vertex/fragment-related structs withBrian Paul2006-07-201-2/+2
| | | | "gl_" to match other structs.
* Remove the _mesa_parse_arb_vertex/fragment_program() functions intoBrian Paul2005-11-191-49/+8
| | | | | | | arbprogparse.c and remove arbvertparse.[ch] and arbfragparse.[ch]. Clean up quite a bit of the arb parsing code. Rewrite parser extension code to avoid a mess of string operations every time the parser was used.
* Move stuff common to vertex/fragment_program into the base class, including:Brian Paul2005-11-121-0/+2
| | | | | | Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program().
* Unify vertex/fragment program instuctions.Brian Paul2005-11-051-4/+3
| | | | Based on patch by Ian (#4967) but also unify instruction opcodes.
* Streamline code generation by using a fixed size instruction buffer inBrian Paul2005-11-031-7/+11
| | | | arb_program struct.
* Several fp and vp tweaks:Keith Whitwell2005-11-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | - 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.
* If parsing a program fails, don't change the vertex/fragment program object.Brian Paul2005-10-291-3/+4
| | | | | | Specifically, don't attach a dummy program. This change also fixes an occasional segfault. Some code clean-ups. Use GLboolean instead of GLuint to return pass/fail.
* fix a typoBrian Paul2005-01-191-3/+3
|
* Initial changes after moving from src/mesa/main/.Michal Krol2004-03-041-0/+74
Needs testing - it havent been even compiled yet.