Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | glsl: Fix handling of OPCODE_PRINT for no registers case. | Vinson Lee | 2010-04-18 | 1 | -1/+1 |
| | | | | | | | | | A register file value is unsigned so could never be -1. A value of 0 also aliased to PROGRAM_TEMPORARY. If an OPCODE_PRINT has no registers to print, set the register file value to PROGRAM_UNDEFINED and check for that value when executing this instruction. | ||||
* | Replace the _mesa_*printf() wrappers with the plain libc versions | Kristian Høgsberg | 2010-02-19 | 1 | -3/+3 |
| | |||||
* | Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions | Kristian Høgsberg | 2010-02-19 | 1 | -5/+5 |
| | |||||
* | mesa: replace old MEMCPY macro with memcpy | Brian Paul | 2010-02-19 | 1 | -1/+1 |
| | |||||
* | Remove _mesa_memcpy in favor of plain memcpy. | Kenneth Graunke | 2010-02-19 | 1 | -1/+1 |
| | | | | This may break the SUNOS4 build, but it's no longer relevant. | ||||
* | Remove _mesa_atoi in favor of plain atoi. | Kenneth Graunke | 2010-02-19 | 1 | -5/+5 |
| | |||||
* | Remove _mesa_strncmp in favor of plain strncmp. | Kenneth Graunke | 2010-02-19 | 1 | -3/+3 |
| | |||||
* | Remove _mesa_strcmp in favor of plain strcmp. | Kenneth Graunke | 2010-02-19 | 1 | -3/+3 |
| | |||||
* | Remove _mesa_strlen in favor of plain strlen. | Kenneth Graunke | 2010-02-19 | 1 | -1/+1 |
| | |||||
* | mesa: Remove unnecessary header from nvvertparse.c. | Vinson Lee | 2010-01-16 | 1 | -1/+0 |
| | |||||
* | mesa: move declaration before code | Vinson Lee | 2009-09-25 | 1 | -2/+3 |
| | |||||
* | i965: Emit zero initialization for NV VP temporaries as required. | Eric Anholt | 2009-09-24 | 1 | -0/+1 |
| | | | | | | | This is similar to what r300 does inside the driver, but I've added it as a generic option since it seems most hardware will want it. Fixes piglit nv-init-zero-reg.vpfp and nv-init-zero-addr.vpfp. | ||||
* | mesa: Initialize NV_vertex_program fields for the parameter lists and such. | Eric Anholt | 2009-09-24 | 1 | -0/+25 |
| | | | | This helps let drivers treat NV_vp like ARB_vp. | ||||
* | mesa: merge the prog_src_register::NegateBase and NegateAbs fields | Brian Paul | 2009-04-14 | 1 | -5/+5 |
| | | | | | | There's really no need for two negation fields. This came from the GL_NV_fragment_program extension. The new, unified Negate bitfield applies after the absolute value step. | ||||
* | mesa: remove NV vertex/fragment program print/debug code | Brian Paul | 2009-04-14 | 1 | -156/+2 |
| | | | | The code in prog_print.c can be used instead. | ||||
* | mesa: remove GL_MESA_program_debug extension | Brian Paul | 2009-03-07 | 1 | -7/+0 |
| | | | | This was never fully fleshed out and hasn't been used. | ||||
* | mesa: prefix a bunch of #include lines with "main/". | Brian Paul | 2008-09-18 | 1 | -4/+4 |
| | | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code... | ||||
* | use _mesa_copy_instructions() | Brian | 2007-03-22 | 1 | -2/+1 |
| | |||||
* | merge from master | Brian | 2007-03-21 | 1 | -4/+4 |
|\ | |||||
| * | added SWIZZLE_XXXX, YYYY, etc. macros | Brian | 2007-03-15 | 1 | -4/+4 |
| | | |||||
* | | remove unneeded includes | Brian | 2006-12-14 | 1 | -2/+0 |
| | | |||||
* | | Updated includes. | Brian | 2006-12-14 | 1 | -1/+1 |
|/ | |||||
* | Change _mesa_init_instruction() to initialize an array of instructions. | Brian Paul | 2006-10-29 | 1 | -1/+1 |
| | |||||
* | s/GLuint/GLbitfield/ | Brian Paul | 2006-10-10 | 1 | -2/+2 |
| | |||||
* | If program is position invariant, set VERT_BIT_POS in InputsRead field. | Brian Paul | 2006-10-10 | 1 | -2/+4 |
| | | | | Fixes broken "OPTION NV_position_invariant". | ||||
* | s/0/VERT_RESULT_HPOS/ | Brian Paul | 2006-08-30 | 1 | -1/+1 |
| | |||||
* | use _mesa_alloc_instructions() | Brian Paul | 2006-08-25 | 1 | -2/+1 |
| | |||||
* | Some structure renaming. Prefix vertex/fragment-related structs with | Brian Paul | 2006-07-20 | 1 | -2/+2 |
| | | | | "gl_" to match other structs. | ||||
* | Define new NEGATE_* tokens for setting the src register's NegateBase field. | Brian Paul | 2006-05-30 | 1 | -5/+5 |
| | | | | | Before, we were using GL_TRUE/GL_FALSE in a few places. Note: only the SWZ instruction can negate individual components. | ||||
* | SrcReg->Swizzle is always initialized to SWIZZLE_NOOP, and if the program | Dave Airlie | 2006-04-19 | 1 | -0/+3 |
| | | | | | | | | | specifies a 2/3/4-compontent swizzle suffix, SrcReg->Swizzles is just ORed against the new component values, without resetting it first. Attached patch makes tests/vptest2 pass. From Tilam Sauerbeck bug 6673 | ||||
* | Make ARB_vp backends happy with nv arl | Aapo Tahkola | 2006-03-24 | 1 | -0/+5 |
| | |||||
* | Set NumInstructions (bug 5864) | Brian Paul | 2006-02-15 | 1 | -0/+1 |
| | |||||
* | C++ fixes, mostly casts (Stephane Conversy) | Brian Paul | 2005-12-06 | 1 | -1/+1 |
| | |||||
* | move _mesa_init_instruction() to program.c | Brian Paul | 2005-11-20 | 1 | -23/+0 |
| | |||||
* | Move stuff common to vertex/fragment_program into the base class, including: | Brian Paul | 2005-11-12 | 1 | -12/+12 |
| | | | | | | Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program(). | ||||
* | Use _mesa_opcode_string() | Brian Paul | 2005-11-05 | 1 | -32/+9 |
| | |||||
* | Unify vertex/fragment program instuctions. | Brian Paul | 2005-11-05 | 1 | -91/+100 |
| | | | | Based on patch by Ian (#4967) but also unify instruction opcodes. | ||||
* | use WRITEMASK_* tokens | Brian Paul | 2005-11-03 | 1 | -6/+6 |
| | |||||
* | Several fp and vp tweaks: | Keith Whitwell | 2005-11-01 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | - 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. | ||||
* | Lots of clean-up in arb program parser. | Brian Paul | 2005-10-30 | 1 | -5/+20 |
| | | | | Use new _mesa_init_fp/vp_instruction() function to initialize instructions. | ||||
* | Make the vertex program source register Index field a signed int since | Brian Paul | 2005-07-22 | 1 | -4/+4 |
| | | | | | | | relative addressing can be negative. Change some GLuint indexes to GLint in the t_vp_build.c file. Added PROGRAM_UNDEFINED token for initializing the register File field to avoid a gcc 4.0 warning. | ||||
* | Port Mesa to build on a P64 platform (e.g., Win64). P64 platforms | Karl Schultz | 2005-05-05 | 1 | -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 program | Keith Whitwell | 2005-04-21 | 1 | -63/+58 |
| | | | | | representations by switching to packed structures for registers and instructions. | ||||
* | Added PRINT instruction for GL_NV_fragment_program. | Brian Paul | 2004-12-18 | 1 | -1/+1 |
| | |||||
* | Experimental PRINT instruction for NV_vertex_program. | Brian Paul | 2004-12-16 | 1 | -2/+112 |
| | | | | | Basically, this lets you put a "PRINT 'mesage', register;" statement in a vertex program to aid in debugging. | ||||
* | Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵ | Brian Paul | 2004-08-25 | 1 | -0/+1 |
| | | | | 1015696) | ||||
* | disable some debug code | Brian Paul | 2004-06-29 | 1 | -2/+2 |
| | |||||
* | Fix up some assorted issues with initialization of vertex program registers. | Brian Paul | 2004-04-21 | 1 | -0/+1 |
| | | | | | Some need to be set per-vertex, other per-primitive. Cleared that up. Only need to init temp/result registers if executing an NV vertex program. | ||||
* | Moved from src/mesa/main | Michal Krol | 2004-03-29 | 1 | -0/+1496 |