summaryrefslogtreecommitdiff
path: root/src/mesa/shader/arbprogparse.c
AgeCommit message (Collapse)Author
2007-07-04Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian
of -I flags.
2007-06-07Add support for GL_ARB_fragment_program_shadow.Ian Romanick
2007-06-05Updates for array texture shadow targets.Ian Romanick
2007-05-16Initial implementation of MESA_texture_arrayIan Romanick
Shadow sampling from texture arrays is still not implemented. Everything else should be there, though.
2007-03-09Merge branch 'origin' into glsl-compiler-1Brian
Conflicts: src/mesa/main/context.c
2007-03-04Propogate UsesKill information.Keith Whitwell
2007-02-23fix fog breakageBrian
2007-02-23replace GLint with gl_state_indexBrian
2007-02-22updated debug codeBrian
2007-02-22Undo some STATE_POINT/FOG changes. Max length of state token array is now 5.Brian
2007-02-22Merge branch 'origin' into glsl-compiler-1Brian
Conflicts: src/mesa/main/state.c src/mesa/shader/program.c src/mesa/shader/program.h src/mesa/shader/programopt.c src/mesa/shader/slang/slang_execute.c src/mesa/sources src/mesa/swrast/s_arbshader.c src/mesa/swrast/s_context.c src/mesa/swrast/s_span.c src/mesa/swrast/s_zoom.c src/mesa/tnl/t_context.c src/mesa/tnl/t_save_api.c src/mesa/tnl/t_vb_arbprogram.c src/mesa/tnl/t_vp_build.c src/mesa/tnl/t_vtx_eval.c
2007-02-21more minor changes to STATE_ indexingBrian
2007-02-21adjustments to STATE_ token layout/format so token[1] is always the array indexBrian
2007-02-09optimize generated vertex programs a bitRoland Scheidegger
Use new internal state to avoid per-vertex normalization of static spot direction vector. Use internal state for simpler per-vertex fog computations (MAD instead of SUB/MUL for linear fog, EX2 instead of POW for EXP/EXP2 fog). Simplify point size calc (2 MADs instead of MOV, MUL, MUL, DP3), and while there fix it up (RSQ instead of RCP). All untested...
2007-02-01silence uninitialized var warningBrian
2007-01-09clean up a bunch of program parameter stuffBrian
2007-01-09Moved NumTexInstructions, NumTexIndirections, etc. into gl_program sinceBrian
they can now apply to vertex programs.
2007-01-04move TexturesUsed[] into gl_program since vertex programs/shaders can use ↵Brian
textures nowadays
2006-12-14Updated includes.Brian
2006-12-14Replace __extension__ with LONGSTRING.Brian
2006-11-15Add a size parameter to _mesa_add_unnamed_constant() andBrian Paul
_mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4). Always 4 for now...
2006-11-15#define LONGSTRING __extension__ in imports.h and use it to silence gccBrian Paul
warnings about long string literals.
2006-10-29Change _mesa_init_instruction() to initialize an array of instructions.Brian Paul
2006-10-29Program instructions are initialized before parsing so no need to setBrian Paul
Abs, NegateAbs, CondMask and CondSwizzle fields to defaults here. CondMask was getting mis-set. Removing the incorrect assignment improves fragment program speed by 15%.
2006-09-06for VERTEX_ATTRIB_WEIGHT, use break, not returnBrian Paul
2006-09-05Hack for Warcraft (bug 8060): allow 'vertex.weight' to be referenced inBrian Paul
vertex program, even though it's not really supported. Results will be undefined, but Warcraft doesn't actually use the attribute.
2006-09-05fix typo in enable_parser_extensions(): s/point_parameters/vertex_blend/Brian Paul
2006-09-05Consolidate common case of _mesa_set_program_error() followed by _mesa_error()Brian Paul
in new program_error() function. Add const qualifiers in many places. Reorder some debug code to prevent referencing free'd memory.
2006-08-30Check that we don't try to reference more than one target of a texture unit.Brian Paul
For example, referencing both "texture[0], 2D" and "texture[0], CUBE" in one program is an error.
2006-08-30fix initialization of native resource usage of vertex/fragment programsRoland Scheidegger
2006-08-25use _mesa_alloc_instructions()Brian Paul
2006-08-24update MAX_INSTRUCTIONS limitBrian Paul
2006-08-24use _mesa_realloc_instructions()Brian Paul
2006-07-20Some structure renaming. Prefix vertex/fragment-related structs withBrian Paul
"gl_" to match other structs.
2006-06-28propagate errors from parse_generic_attrib_num in parse_attrib_binding (-> ↵Tilman Sauerbeck
don't segfault when you're trying to access invalid generic attributes
2006-05-29don't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already ↵Tilman Sauerbeck
done in parse_generic_attrib_num()
2006-05-29generic attribute 0 wasn't handled correctly (Jesse Allen)Brian Paul
2006-04-28fix second memory leak (bug 5557)Brian Paul
2006-04-28fix first memory leak (bug 5557)Brian Paul
2006-04-25No longer alias generic vertex attribs with conventional attribs for ↵Brian Paul
GL_ARB_vertex_program.
2006-04-11More GLSL code:Michal Krol
- use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
2006-03-29move NumNativeAlu/TexInstruction assignments (Ewald Snel)Brian Paul
2006-03-22ARL dst idx was undefined.Aapo Tahkola
2005-12-06C++ fixes, mostly casts (Stephane Conversy)Brian Paul
2005-11-20Make Saturate a 2-bit field again, renamed to SaturateMode with threeBrian Paul
possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE.
2005-11-19remove incorrect castBrian Paul
2005-11-19Remove the _mesa_parse_arb_vertex/fragment_program() functions intoBrian Paul
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.
2005-11-12Move stuff common to vertex/fragment_program into the base class, including:Brian Paul
Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program().
2005-11-08remove unneeded #includesBrian Paul
2005-11-05Unify vertex/fragment program instuctions.Brian Paul
Based on patch by Ian (#4967) but also unify instruction opcodes.