summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/prog_execute.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: debug printf for KILBrian Paul2009-08-311-0/+5
|
* mesa: added NaN checking code (disabled)Brian Paul2009-06-031-0/+14
|
* mesa: check/prevent NaN for EX2/LG2Brian Paul2009-06-031-6/+15
|
* mesa: merge the prog_src_register::NegateBase and NegateAbs fieldsBrian Paul2009-04-141-20/+7
| | | | | | 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: for OPCODE_LIT, use _mesa_pow() instead of exp() and log()Brian Paul2009-04-031-2/+2
| | | | Also, s/pow/_mesa_pow/
* mesa: use correct tex unit lod bias for TXB instructionBrian Paul2009-04-011-2/+2
|
* mesa: remove GL_MESA_program_debug extensionBrian Paul2009-03-071-41/+0
| | | | This was never fully fleshed out and hasn't been used.
* GLSL: The LOG2 macro doesn't have enough precisionIan Romanick2008-12-191-2/+9
| | | | | It looks like the LOG2 macro only has 8 or 9 bits of precission, but the ARB_vertex_program spec says "accurate to at least 10 bits".
* mesa: rename slang_library_noise.[ch] to prog_noise.[ch] and rename functionsBrian Paul2008-12-151-5/+6
| | | | | The noise functions were not glsl-specific. Also, ran indent on the code to clean it up.
* mesa: use IFLOOR(x) instead of (int) FLOORF(x)Brian Paul2008-12-121-1/+1
|
* mesa: allow relative indexing into all register files and indirect dst ↵Brian Paul2008-11-111-117/+120
| | | | register indexing
* mesa: forgot sqrt in NRM3/4 instructionsBrian Paul2008-11-071-2/+2
|
* mesa: added DP2, DP2A instructionsBrian Paul2008-11-071-2/+28
|
* mesa: added AND/OR/NOT/XOR instructionsBrian Paul2008-11-071-23/+191
|
* mesa: added OPCODE_NRM3/NRM4 instructions for vector normalization.Brian Paul2008-11-071-0/+41
| | | | | | We may emit these instructions from GLSL instead of DP3/RCP/MUL. Also, implement SSG (set sign) instruction in the interpreter.
* mesa: rename OPCODE_INT -> OPCODE_TRUNCBrian Paul2008-11-061-11/+11
| | | | Trunc is a more accurate description; there's no type conversion involved.
* mesa: Apply MSVC portability fixes from Alan Hourihane.José Fonseca2008-09-231-3/+3
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-3/+3
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* mesa: Silence compiler warnings on Windows.Brian Paul2008-07-291-1/+1
|
* glsl: allow uniformsZack Rusin2008-06-121-1/+2
|
* whitespace/formattingBrian Paul2008-05-161-2/+0
|
* Updated GLSL uniform/sampler handling from gallium-0.1 branchBrian Paul2008-05-141-4/+4
| | | | | | | | | | Previously, the shader linker combined the uniforms used by the vertex and fragment shaders into a combined set of uniforms. This made the implementation of glUniform*() simple, but was rather inefficient otherwise. Now each shader gets its own set of uniforms (no more modelview matrix showing up in the fragment shader uniforms, for example). cherry-picked by hand from gallium-0.1 branch
* Fix error stringAlan Hourihane2008-04-221-1/+2
|
* fix failed assertion (parameter can be a PROGRAM_CONSTANT)Brian Paul2008-04-111-0/+1
|
* Consolidate texture fetch code and use partial derivatives when possible.Brian2007-11-231-63/+65
|
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-1/+1
| | | | of -I flags.
* Resuscitate some of the DDX,DDY code.Brian2007-05-021-243/+48
| | | | | Only works for program input registers at this time. Good enough for the common case of texcoords, though.
* another bit of debug codeBrian2007-04-211-0/+3
|
* Get rid of BRK0, BRK1, CONT0, CONT1 instructions.Brian2007-03-281-26/+0
|
* print condcodes if DEBUG_PROGBrian2007-03-281-0/+7
|
* fix another pc off-by oneBrian2007-03-271-1/+2
|
* fix off by one error in OPCODE_RETBrian2007-03-271-3/+4
|
* Add the ability to generate programs that doesn't use condition codes.Brian2007-03-231-7/+46
| | | | | | | ctx->Shader.EmitCondCodes determines if we use condition codes. If not, IF statement uses first operand's X component as the condition. Added OPCODE_BRK0, OPCODE_BRK1, OPCODE_CONT0, OPCODE_CONT1 to handle the common cases of conditional break/continue.
* more DEBUG_PROGBrian2007-03-071-0/+5
|
* more DEBUG_PROG codeBrian2007-03-061-2/+34
|
* update commentsBrian2007-02-251-3/+3
|
* fix bounds checking in get_register_pointer()Brian2007-02-251-5/+11
|
* Add EnvParams field to gl_program_machine, avoid passing ctx to a bunch of ↵Brian2007-02-251-107/+106
| | | | functions.
* simplify _mesa_get_program_register()Brian2007-02-251-39/+24
|
* minor clean-ups in _mesa_execute_program()Brian2007-02-251-5/+4
|
* remove 'maxInst' parameter from _mesa_execute_program()Brian2007-02-251-3/+3
|
* remove unused 'element' parameter from _mesa_execute_program()Brian2007-02-251-1/+1
|
* Outputs[] array wasn't large enough, define MAX_PROGRAM_OUTPUTS, new assertions.Brian2007-02-241-2/+3
|
* remove commentBrian2007-02-241-2/+0
|
* Fix assertion in get_register_pointer(), fix EXP case.Brian2007-02-241-14/+8
| | | | | Note that GL_ARB_v_p and GL_NV_v_p define the z component of the EXP instruction differently. We follow the ARB extension.
* added ARL, EXP, LOG, relative indexingBrian2007-02-231-4/+115
|
* reindentBrian2007-02-231-928/+924
|
* don't pass program ptr to fetch_vector[14]()Brian2007-02-231-84/+82
|
* New, unified interpretor/executor for vertex and fragment programs.Brian2007-02-221-0/+1585
This replaces the code formerly in nvvertexec.c and s_fragprog.c. Currently, DDX, DDY don't work.