Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mesa: replace 8 with NUM_UNITS | Brian Paul | 2009-09-02 | 1 | -1/+4 |
| | |||||
* | mesa: when emitting vertex program fog, set yzw=0,0,1 | Brian Paul | 2009-08-18 | 1 | -0/+2 |
| | | | | Fixes piglit fp-fog failure with gallium. | ||||
* | mesa: remove whitespace | Keith Whitwell | 2009-06-30 | 1 | -108/+108 |
| | |||||
* | mesa: remove dead constant pointsize code from ffvertex_prog.c | Keith Whitwell | 2009-06-30 | 1 | -17/+0 |
| | |||||
* | mesa: remove dead vertex fog code from ffvertex_prog.c | Keith Whitwell | 2009-06-30 | 1 | -84/+3 |
| | |||||
* | mesa: fix material inputs in ffvertex_prog.c | Keith Whitwell | 2009-06-30 | 1 | -39/+15 |
| | | | | | | Varying material inputs were not being picked up from the same slots where the VBO code is currently placing them (GENERIC0 and above). Most often they were just being ignored. | ||||
* | mesa: more complete fix for transform_invarient glitches | Keith Whitwell | 2009-05-08 | 1 | -9/+7 |
| | | | | | | Add a new flag mvp_with_dp4 in the context, and use that to switch both ffvertex.c and programopt.c vertex transformation code to either DP4 or MUL/MAD implementations. | ||||
* | mesa/main: set PREFER_DP4 to match position_invarient code | Keith Whitwell | 2009-05-08 | 1 | -1/+1 |
| | | | | | | | | This is a quick fix for z fighting in quake4 caused by the mismatch between vertex transformation here and in the position_invarient code. Full fix would be to make this driver-tunable and adjust both position_invarient and ffvertex_prog.c code to respect driver preferences. | ||||
* | mesa: merge the prog_src_register::NegateBase and NegateAbs fields | Brian Paul | 2009-04-14 | 1 | -2/+1 |
| | | | | | | 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: fix bug in GPU codegen for fixed-function two-sided lighting | Brian Paul | 2009-03-31 | 1 | -2/+12 |
| | | | | | | | | | | | | | The 'dots' register wasn't getting properly un-negated and un-swizzled after emitting the code for back-face lighting. So, if more than one light source was enabled, the specular exponent for the next light source was wrong. During execution we were evaluating pow(x, y) where y was negative instead of positive. This led to the outcome being zero or NaN. This fixes the occasional black triangles seen in isosurf when hacked to enable two-sided lighting. | ||||
* | mesa: minor reformatting, whitespace changes | Brian Paul | 2009-03-31 | 1 | -25/+26 |
| | |||||
* | mesa: remove GL_MESA_program_debug extension | Brian Paul | 2009-03-07 | 1 | -1/+0 |
| | | | | This was never fully fleshed out and hasn't been used. | ||||
* | mesa: re-org texgen state | Brian Paul | 2009-02-21 | 1 | -4/+4 |
| | | | | New gl_texgen struct allows quite a bit of code reduction. | ||||
* | Merge commit 'origin/master' into gallium-0.2 | Brian Paul | 2009-01-02 | 1 | -14/+30 |
|\ | | | | | | | | | | | | | Conflicts: src/mesa/main/ffvertex_prog.c src/mesa/main/texenvprogram.c | ||||
| * | mesa: comments, whitespace changes | Brian Paul | 2009-01-01 | 1 | -13/+31 |
| | | |||||
| * | mesa: increase max texture image units and GLSL samplers to 16 | Brian Paul | 2008-12-31 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The max texture coord units is still 8. All the fixed-function paths are still limited to 8 too. But GLSL shaders can use more samplers now. Note that some texcoord-related data structures are declared to be 16 elements in size rather than 8. This just simplifies the code in a few places; the extra elements aren't accessible to the user. These changes haven't been extensively tested yet, but sanity checking has been done. It should be possible to increase the max image units/samplers to 32 without doing anything special. Beyond that we'll need longer bitfields in a few places. | ||||
* | | Merge commit 'origin/master' into gallium-0.2 | Brian Paul | 2008-11-11 | 1 | -0/+8 |
|\| | | | | | | | | | | | | | Conflicts: src/mesa/shader/prog_execute.c src/mesa/shader/slang/library/slang_vertex_builtin_gc.h | ||||
| * | mesa: restore the negate flag of dots in build_lighting. | Xiang, Haihao | 2008-11-11 | 1 | -0/+3 |
| | | | | | | | | | | Dots is re-used if more than one light is enabled. Previously the negate flag of dots may affect next light. | ||||
| * | mesa: use NRM3 in emit_normalize_vec3() when drivers are ready | Brian | 2008-11-08 | 1 | -0/+5 |
| | | |||||
* | | Merge commit 'origin/master' into gallium-0.2 | Brian Paul | 2008-11-07 | 1 | -3/+2 |
|\| | |||||
| * | mesa: use _bfc0 instead of _col0 when building back face lighting. | Xiang, Haihao | 2008-11-07 | 1 | -3/+2 |
| | | |||||
* | | Merge commit 'origin/gallium-0.1' into gallium-0.2 | Keith Whitwell | 2008-10-15 | 1 | -30/+40 |
|\ \ | |/ |/| | | | | | | | Conflicts: src/mesa/main/context.c | ||||
| * | mesa: modify fixed function vertex programs not to reference constant attributes | Keith Whitwell | 2008-10-14 | 1 | -30/+40 |
| | | |||||
| * | mesa: Silence compiler warnings on Windows. | Michal Krol | 2008-09-04 | 1 | -1/+1 |
| | | |||||
| * | mesa: remove debug code | Brian Paul | 2008-08-28 | 1 | -2/+0 |
| | | |||||
| * | mesa: dynamically grow the fixed function vertex program as needed | Brian Paul | 2008-08-28 | 1 | -10/+46 |
| | | | | | | | | | | Don't use a fixed-size array. Saves memory in most cases and avoids potential overflow for long programs. | ||||
| * | mesa: bump MAX_INSN to 300 | Brian Paul | 2008-08-28 | 1 | -1/+1 |
| | | |||||
| * | mesa: check FEATURE_point_size_array | Brian Paul | 2008-06-28 | 1 | -0/+2 |
| | | |||||
| * | mesa: point size arrays | Brian Paul | 2008-06-25 | 1 | -4/+30 |
| | | |||||
| * | mesa: restore and fix Keith's "further degenerate the special case lit ↵ | Brian Paul | 2008-06-12 | 1 | -13/+31 |
| | | | | | | | | | | | | | | | | | | substitute" There was a bug in emit_degenerate_lit() that caused the SLT to produce unpredictable results in lit.z Plus, added a bunch of new comments. | ||||
| * | Revert "mesa: further degenerate the special case lit substitute" | Brian Paul | 2008-06-11 | 1 | -12/+9 |
| | | | | | | | | | | | | This reverts commit e841b92d9c8bf48085b4996df828ae745977f931. This fixes two specular lighting conform failures. | ||||
| * | mesa: turn off ffvertex prog debug | Keith Whitwell | 2008-06-06 | 1 | -1/+1 |
| | | |||||
| * | ffvertex: emit full LIT when attenuating (needs the 1 in X position) | Keith Whitwell | 2008-05-27 | 1 | -19/+31 |
| | | |||||
| * | ffvertex: don't compute whole eye vector if only eye.z is required | Keith Whitwell | 2008-05-27 | 1 | -3/+27 |
| | | |||||
| * | Revert "mesa: save a temp on normalizes" | Keith Whitwell | 2008-05-24 | 1 | -4/+6 |
| | | | | | | | | This reverts commit feceb43948f76cc4d4c8ecbb86b1b1f438c6daee. | ||||
| * | mesa: pre-swizzle normal scale state value | Keith Whitwell | 2008-05-24 | 1 | -2/+1 |
| | | |||||
| * | mesa: save a temp on normalizes | Keith Whitwell | 2008-05-23 | 1 | -6/+4 |
| | | |||||
| * | mesa: further degenerate the special case lit substitute | Keith Whitwell | 2008-05-23 | 1 | -9/+12 |
| | | |||||
| * | mesa: don't emit LIT instruction when mat shininess known to be zero | Keith Whitwell | 2008-05-23 | 1 | -31/+102 |
| | | | | | | | | Use a faster path in that case & make gears go faster. | ||||
| * | mesa: do object-space lighting in ffvertex_prog.c | Keith Whitwell | 2008-05-23 | 1 | -29/+50 |
| | | | | | | | | | | Start pulling over some of the optimizations from the fixed function paths. | ||||
| * | mesa: comments, whitespace | Brian | 2008-05-06 | 1 | -24/+19 |
| | | |||||
| * | mesa: clamp point size in vertex program when computing attenuated size | Brian Paul | 2008-03-14 | 1 | -3/+4 |
| | | |||||
| * | use PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating ↵ | Brian | 2008-01-18 | 1 | -1/+1 |
| | | | | | | | | immediates/literals | ||||
| * | fix mem leak (free key) | Brian | 2008-01-01 | 1 | -5/+5 |
| | | |||||
| * | Lift fixed function vertex program generation up from tnl module. | Brian | 2007-10-31 | 1 | -0/+1550 |
| | |||||
* | mesa: drop calloc from _mesa_get_fixed_func_vertex_program | Shunichi Fuji | 2008-09-29 | 1 | -11/+7 |
| | | | | Signed-off-by: Shunichi Fuji <[email protected]> | ||||
* | mesa: move fixed function vertex program builder from tnl to core mesa | Keith Whitwell | 2008-09-21 | 1 | -0/+1753 |
Also unify caching of fragment and vertex programs in shader/prog_cache.c` Brought across from gallium-0.2 |