Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add fragment shader execute entry. | Michal Krol | 2006-02-15 | 1 | -8/+109 |
| | |||||
* | Update OpenVMS compile support | Jouk Jansen | 2006-02-13 | 1 | -3/+9 |
| | |||||
* | More glsl code. | Michal Krol | 2006-02-13 | 2 | -1763/+1952 |
| | |||||
* | REVISION 3. | Michal Krol | 2006-02-13 | 2 | -62/+50 |
| | | | | Remove illegal operators for overloading. | ||||
* | Cosmetic changes. | Michal Krol | 2006-02-13 | 4 | -633/+301 |
| | |||||
* | Delete most of the comments. | Michal Krol | 2006-02-13 | 2 | -1150/+1923 |
| | | | | | Minor tweaks with the functions. Add experimental print functions. | ||||
* | Get it running for ARB_vertex_shader. | Michal Krol | 2006-02-13 | 27 | -1346/+2060 |
| | | | | | | | | | | | Add experimental print functions to builtin library. Some functionality missing: - automatic arrays; - general constructors; - local variable initialization; - texture sampling and noise; - semantic error checking; - function prototypes. | ||||
* | Rename current_program to CurrentProgram. | Michal Krol | 2006-02-13 | 2 | -32/+140 |
| | | | | Temporary vertex_shader execution code. | ||||
* | Split slang_compile.c into several smaller files - it was just too big. | Michal Krol | 2006-01-30 | 16 | -1066/+1639 |
| | | | | Minor fixes and cosmetic changes. | ||||
* | remove some test code; | Michal Krol | 2006-01-16 | 5 | -197/+158 |
| | | | | | | rewrite the intermediate code executor to address 64-bit platforms and global memory; store built-in library code in a precompiled form only; | ||||
* | remove slang_*_gc.h files; | Michal Krol | 2006-01-16 | 10 | -5265/+1321 |
| | | | | | rename slang_*_gc_bin.h files to slang_*_gc.h ones; store built-in library code in a precompiled form only; | ||||
* | C++ fixes, mostly casts (Stephane Conversy) | Brian Paul | 2005-12-06 | 4 | -21/+21 |
| | |||||
* | track state flags which might invalidate parameter lists | Keith Whitwell | 2005-11-22 | 2 | -0/+80 |
| | |||||
* | move _mesa_init_instruction() to program.c | Brian Paul | 2005-11-20 | 2 | -23/+25 |
| | |||||
* | Make Saturate a 2-bit field again, renamed to SaturateMode with three | Brian Paul | 2005-11-20 | 4 | -41/+53 |
| | | | | possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE. | ||||
* | remove incorrect cast | Brian Paul | 2005-11-19 | 1 | -1/+1 |
| | |||||
* | Saturate is a 1-bit boolean field | Brian Paul | 2005-11-19 | 1 | -1/+1 |
| | |||||
* | No longer derive 'ati_fragment_shader' from 'program' class. Only the | Brian Paul | 2005-11-19 | 4 | -79/+84 |
| | | | | | program->Id and program->RefCount fields were used and ATI fragment shaders didn't have too much in common with ARB/NV vertex/fragment programs anyway. | ||||
* | Remove the _mesa_parse_arb_vertex/fragment_program() functions into | Brian Paul | 2005-11-19 | 8 | -441/+263 |
| | | | | | | | 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. | ||||
* | update comments, remove ^M chars | Brian Paul | 2005-11-19 | 1 | -12/+7 |
| | |||||
* | move a bunch of gl2/shading language structs from mtypes.h to shaderobjects.h | Brian Paul | 2005-11-19 | 1 | -0/+82 |
| | |||||
* | Improve _mesa_print_program(). | Brian Paul | 2005-11-12 | 1 | -31/+354 |
| | | | | Added make_state_string() to produce a string from a GL state vector. | ||||
* | fix comment for TexSrcTarget | Brian Paul | 2005-11-12 | 1 | -2/+1 |
| | |||||
* | update some assertions | Brian Paul | 2005-11-12 | 2 | -2/+2 |
| | |||||
* | Move stuff common to vertex/fragment_program into the base class, including: | Brian Paul | 2005-11-12 | 10 | -150/+198 |
| | | | | | | Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program(). | ||||
* | This patch adds the missing NV_vertex_program2 and NV_vertex_program3 | Ian Romanick | 2005-11-08 | 2 | -37/+29 |
| | | | | | | | | | | | | | | | | instructions to the various internal tables. It does not add support for them to the parser nor does it add support for them to the program interpreter. It also corrects some errors in the comments in program_instruction.h. This patch breaks the instruction union in t_vb_arbprogram.h. The opcode field in that union was only 6 bits. When there were only 59+3 instructions that worked fine. However, this patch increases the base instruction count to 69. This requires 7 bits. The problem is that increasing the opcode width to 7 bits increases the size of instruction::rsw to 33 bits. I've increased the size of the union to 64-bit, but this is just a temporary hack (and probably breaks the build on some systems). | ||||
* | remove _mesa_debug_fp_inst() | Brian Paul | 2005-11-08 | 1 | -6/+2 |
| | |||||
* | minor work in _mesa_print_program() | Brian Paul | 2005-11-08 | 1 | -1/+10 |
| | |||||
* | remove unneeded #includes | Brian Paul | 2005-11-08 | 1 | -8/+2 |
| | |||||
* | remove unneeded #includes | Brian Paul | 2005-11-07 | 2 | -17/+6 |
| | |||||
* | consolidate vertex/fragment program printing into _mesa_print_program() | Brian Paul | 2005-11-05 | 6 | -182/+131 |
| | |||||
* | use _mesa_program_file_string() and _mesa_opcode_string() | Brian Paul | 2005-11-05 | 2 | -135/+50 |
| | |||||
* | added _mesa_program_file_string() | Brian Paul | 2005-11-05 | 2 | -0/+34 |
| | |||||
* | Use _mesa_opcode_string() | Brian Paul | 2005-11-05 | 1 | -32/+9 |
| | |||||
* | added _mesa_num_inst_src_regs() and _mesa_opcode_string() | Brian Paul | 2005-11-05 | 2 | -0/+116 |
| | |||||
* | Unify vertex/fragment program instuctions. | Brian Paul | 2005-11-05 | 16 | -631/+675 |
| | | | | Based on patch by Ian (#4967) but also unify instruction opcodes. | ||||
* | don't need MAKE_SWIZZLE() macro | Brian Paul | 2005-11-05 | 2 | -7/+6 |
| | |||||
* | Replace parameter_type enum in program.[ch], use register_file enums instead. | Brian Paul | 2005-11-05 | 3 | -23/+14 |
| | |||||
* | use VERT_RESULT_HPOS, VERT_BIT_POS tokens | Brian Paul | 2005-11-04 | 1 | -5/+5 |
| | |||||
* | Streamline code generation by using a fixed size instruction buffer in | Brian Paul | 2005-11-03 | 4 | -79/+54 |
| | | | | arb_program struct. | ||||
* | use WRITEMASK_* tokens | Brian Paul | 2005-11-03 | 2 | -12/+12 |
| | |||||
* | added a const, clean-up | Brian Paul | 2005-11-03 | 2 | -12/+16 |
| | |||||
* | fix typo, minor clean-ups | Brian Paul | 2005-11-03 | 1 | -5/+5 |
| | |||||
* | Rename FRAG_OUTPUT_* tokens to FRAG_RESULT_* to match vertex program convention | Brian Paul | 2005-11-02 | 4 | -10/+10 |
| | |||||
* | Several fp and vp tweaks: | Keith Whitwell | 2005-11-01 | 4 | -11/+8 |
| | | | | | | | | | | | | | | | | | | | | | | - 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. | ||||
* | Re-org and clean-up of vertx/fragment program limits (instructions, | Brian Paul | 2005-11-01 | 3 | -168/+148 |
| | | | | | | | temporaries, parameters, etc). glGetProgramivARB() now returns all the right things. Updated i915 and r300 code to initialize program native limits and current program's native instruction/temporary/etc counts. | ||||
* | Simplify parse_attrib_binding(). | Brian Paul | 2005-10-30 | 1 | -98/+49 |
| | | | | | | Now only use VERT_ATTRIB_* and FRAG_ATTRIB_* tokens instead of hard-coded numbers. Note: previous check-in did similarly for output register parsing. | ||||
* | Lots of clean-up in arb program parser. | Brian Paul | 2005-10-30 | 5 | -231/+250 |
| | | | | Use new _mesa_init_fp/vp_instruction() function to initialize instructions. | ||||
* | Use MAKE_SWIZZLE4() macro in a few more places. | Brian Paul | 2005-10-29 | 1 | -119/+98 |
| | | | | Clean up the parse_extended_swizzle_mask() and parse_swizzle_mask() functions. | ||||
* | Free old parameter list before assigning new one. FIxes memory leak. | Brian Paul | 2005-10-29 | 2 | -3/+13 |
| |