Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix using a tmp without asking for one | Jerome Glisse | 2006-01-24 | 1 | -0/+1 |
| | |||||
* | fix broken get_half & get_zero | Aapo Tahkola | 2006-01-24 | 1 | -4/+4 |
| | |||||
* | use GLbitfield instead of GLuint | Brian Paul | 2005-12-14 | 1 | -6/+3 |
| | |||||
* | silence warning, bug 5318 | Brian Paul | 2005-12-12 | 1 | -0/+2 |
| | |||||
* | C++ fixes, mostly casts (Stephane Conversy) | Brian Paul | 2005-12-06 | 1 | -1/+1 |
| | |||||
* | Make Saturate a 2-bit field again, renamed to SaturateMode with three | Brian Paul | 2005-11-20 | 1 | -1/+1 |
| | | | | possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE. | ||||
* | additional clean-ups and improvements | Brian Paul | 2005-11-19 | 1 | -21/+38 |
| | |||||
* | Bunch of little fixes: | Brian Paul | 2005-11-19 | 1 | -35/+31 |
| | | | | | | | | Fix mem leaks in _mesa_TexEnvProgramCacheDestroy(). Check if ctx->Driver.BindProgram is non-null before calling. s/unsigned/GLuint/ Use MAX_INSTRUCTIONS instead of magic 100, check program length after it's made. Use _mesa_init_instruction() instead of _mesa_memset(). | ||||
* | Remove the _mesa_parse_arb_vertex/fragment_program() functions into | Brian Paul | 2005-11-19 | 1 | -1/+0 |
| | | | | | | | 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. | ||||
* | Reduce stderr noise. | Aapo Tahkola | 2005-11-18 | 1 | -2/+2 |
| | |||||
* | Move stuff common to vertex/fragment_program into the base class, including: | Brian Paul | 2005-11-12 | 1 | -10/+9 |
| | | | | | | Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program(). | ||||
* | s/_mesa_debug_fp_inst/_mesa_print_program/ | Brian Paul | 2005-11-08 | 1 | -1/+1 |
| | |||||
* | Unify vertex/fragment program instuctions. | Brian Paul | 2005-11-05 | 1 | -30/+30 |
| | | | | Based on patch by Ian (#4967) but also unify instruction opcodes. | ||||
* | Rename FRAG_OUTPUT_* tokens to FRAG_RESULT_* to match vertex program convention | Brian Paul | 2005-11-02 | 1 | -3/+3 |
| | |||||
* | Several fp and vp tweaks: | Keith Whitwell | 2005-11-01 | 1 | -20/+29 |
| | | | | | | | | | | | | | | | | | | | | | | - 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 | 1 | -4/+4 |
| | | | | | | | 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. | ||||
* | Populate arb_fp_instruction negate field correctly. | Keith Whitwell | 2005-10-07 | 1 | -1/+1 |
| | |||||
* | additional wrapper updates, bug 4468 | Brian Paul | 2005-09-19 | 1 | -6/+6 |
| | |||||
* | use mesa import wrappers, bug 4468 | Brian Paul | 2005-09-16 | 1 | -4/+4 |
| | |||||
* | Replace GLuint with GLbitfield where appropriate. Also replace GLuint | Brian Paul | 2005-09-15 | 1 | -1/+1 |
| | | | | with GLboolean in a few places. | ||||
* | Keep NumTemporaries uptodate. | Keith Whitwell | 2005-09-08 | 1 | -0/+7 |
| | | | | Make sure oC alpha is populated when separate_specular enabled. | ||||
* | Follow suggestion by Aapo Tahkola to fix giant memory leak from forgetting ↵ | Vladimir Dergachev | 2005-08-06 | 1 | -0/+1 |
| | | | | to free the key when entry was already found (presumably a common case). | ||||
* | replace fprintf() calls with _mesa_problem() | Brian Paul | 2005-07-19 | 1 | -4/+5 |
| | |||||
* | Cache texenv programs to avoid repeated compilation (Ben Skeggs) | Keith Whitwell | 2005-07-11 | 1 | -224/+435 |
| | |||||
* | Detect use of disabled textures as tex_env_crossbar sources. | Keith Whitwell | 2005-05-23 | 1 | -8/+18 |
| | |||||
* | Support ARB_texture_env_crossbar. Changes the way programs are | Keith Whitwell | 2005-05-23 | 1 | -41/+119 |
| | | | | | generated somewhat, with all TEX instructions now emitted at the head of the program. | ||||
* | Restore the negate() function. | Keith Whitwell | 2005-05-23 | 1 | -5/+33 |
| | | | | Add Ben Skegg's ATI_texture_env_combine3 support. | ||||
* | don't include strings.h | Brian Paul | 2005-05-17 | 1 | -2/+0 |
| | |||||
* | Deal better with indirection and indirection accounting, developed | Keith Whitwell | 2005-05-16 | 1 | -33/+53 |
| | | | | with Ben Skeggs. | ||||
* | new MESA_DEBUG option: disassem | Keith Whitwell | 2005-05-12 | 1 | -1/+1 |
| | |||||
* | Fix glean/conform problems. Don't generate so much output when | Keith Whitwell | 2005-05-11 | 1 | -26/+36 |
| | | | | disassembling. | ||||
* | Fix logic for allocating texture temporaries (Ben Skeggs). | Keith Whitwell | 2005-05-11 | 1 | -15/+24 |
| | | | | | Rename temp_flag, tex_temp_flag to make this clearer. Respect ctx->Const.MaxFragmentProgramTemps limit. | ||||
* | Double-buffer generated instructions and only notify driver when the | Keith Whitwell | 2005-05-10 | 1 | -1/+0 |
| | | | | generated program differs from the previous one. | ||||
* | Double-buffer generated instructions and only notify driver when the | Keith Whitwell | 2005-05-10 | 1 | -8/+21 |
| | | | | generated program differs from the previous one. | ||||
* | Better driver notification on changes. | Keith Whitwell | 2005-05-10 | 1 | -7/+10 |
| | |||||
* | Temporary fix - delete and recreate texenvprogram so that drivers | Keith Whitwell | 2005-05-10 | 1 | -5/+10 |
| | | | | notice when it changes. | ||||
* | Fix texenv segfault. Reported by Ben Skeggs. | Keith Whitwell | 2005-05-10 | 1 | -0/+10 |
| | |||||
* | Try not to use the same temp reg as a TXP destination more than once, | Keith Whitwell | 2005-05-10 | 1 | -2/+40 |
| | | | | | as this also constitutes a texture indirection. Reported by Ben Skeggs. | ||||
* | Use driver functions to create TexEnvProgram, TnlProgram | Keith Whitwell | 2005-05-09 | 1 | -1/+10 |
| | |||||
* | Add a facility to route all rasterization through a fragment program | Keith Whitwell | 2005-05-04 | 1 | -152/+102 |
| | | | | | | | | | | | which is automatically generated to match the current texture environment state. Introduces a new value ctx->FragmentProgram._Active which is true when either _Enabled is true or there is such a fragment program ready to run. To test out on a driver running the software rasterizer, set MESA_TEX_PROG=t in the environment. It goes without saying that performance is lower for the software rasterizer in this mode. | ||||
* | Maintain a fragment program for current texturing state. | Keith Whitwell | 2005-04-29 | 1 | -0/+772 |