summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/nvfragparse.c
Commit message (Collapse)AuthorAgeFilesLines
* use _mesa_copy_instructions()Brian2007-03-221-2/+1
|
* In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow ↵Brian2007-03-221-4/+4
| | | | | | | | swizzleOut==NULL. There are times when we don't want to allow swizzling when searching for or adding vector constants. Passing NULL for swizzleOut disables swizzling. This fixes a constant/swizzle bug in link_uniform_vars().
* move TexturesUsed[] into gl_program since vertex programs/shaders can use ↵Brian2007-01-041-1/+1
| | | | textures nowadays
* remove unneeded includesBrian2006-12-141-3/+0
|
* Updated includes.Brian2006-12-141-1/+2
|
* Checkpoint of work for new GLSL compiler back-end. Lots of assorted changes.Brian2006-12-131-8/+16
|
* Add a size parameter to _mesa_add_unnamed_constant() andBrian Paul2006-11-151-4/+4
| | | | | _mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4). Always 4 for now...
* Change _mesa_init_instruction() to initialize an array of instructions.Brian Paul2006-10-291-1/+1
|
* use _mesa_alloc_instructions()Brian Paul2006-08-251-4/+3
|
* scalar sources such as 'time.x' weren't accepted by parserBrian Paul2006-08-241-2/+16
|
* Some structure renaming. Prefix vertex/fragment-related structs withBrian Paul2006-07-201-5/+5
| | | | "gl_" to match other structs.
* Define new NEGATE_* tokens for setting the src register's NegateBase field.Brian Paul2006-05-301-9/+9
| | | | | Before, we were using GL_TRUE/GL_FALSE in a few places. Note: only the SWZ instruction can negate individual components.
* Silence minor compiler warnings (-Wextra).Brian Paul2006-04-051-2/+2
|
* Set NumInstructions (bug 5864)Brian Paul2006-02-151-0/+1
|
* C++ fixes, mostly casts (Stephane Conversy)Brian Paul2005-12-061-1/+1
|
* Make Saturate a 2-bit field again, renamed to SaturateMode with threeBrian Paul2005-11-201-2/+3
| | | | possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE.
* update some assertionsBrian Paul2005-11-121-1/+1
|
* Move stuff common to vertex/fragment_program into the base class, including:Brian Paul2005-11-121-14/+13
| | | | | | 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-100/+79
| | | | Based on patch by Ian (#4967) but also unify instruction opcodes.
* don't need MAKE_SWIZZLE() macroBrian Paul2005-11-051-2/+2
|
* Replace parameter_type enum in program.[ch], use register_file enums instead.Brian Paul2005-11-051-2/+2
|
* use WRITEMASK_* tokensBrian Paul2005-11-031-6/+6
|
* Rename FRAG_OUTPUT_* tokens to FRAG_RESULT_* to match vertex program conventionBrian Paul2005-11-021-1/+1
|
* Lots of clean-up in arb program parser.Brian Paul2005-10-301-6/+22
| | | | Use new _mesa_init_fp/vp_instruction() function to initialize instructions.
* use mesa import wrappers, bug 4468Brian Paul2005-09-161-2/+2
|
* be consistent in populating NegateBase fieldKeith Whitwell2005-09-081-9/+9
|
* replace -1 with PROGRAM_UNDEFINED when initializing instructionsBrian Paul2005-09-021-6/+5
|
* Port Mesa to build on a P64 platform (e.g., Win64). P64 platformsKarl Schultz2005-05-051-1/+1
| | | | | | | | use 64-bit pointers and 32-bit longs. So, operations like casting pointers to unsigned long and back to pointer won't work. glheader.h now includes files to define uintptr_t, which should instead be used for this sort of operation. It is an integer type that is the same size as a pointer.
* Reduce the size of mesa's internal fragment and vertex programKeith Whitwell2005-04-211-98/+90
| | | | | representations by switching to packed structures for registers and instructions.
* Added PRINT instruction for GL_NV_fragment_program.Brian Paul2004-12-181-6/+73
|
* disable some debug codeBrian Paul2004-06-291-2/+2
|
* Audit/fixes for NV/ARB TEX, TXP, TXB, TXD instructions.Brian Paul2004-04-181-1/+1
| | | | | | 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-2/+2
|
* Moved from src/mesa/mainMichal Krol2004-03-291-0/+1767