summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
Commit message (Collapse)AuthorAgeFilesLines
* New vbo_set_draw_func() to keep vbo context opaque to state tracker and tnl ↵Brian2007-12-071-0/+3
| | | | module.
* remove dead program cache codeBrian2007-10-314-1638/+1
|
* Use ffvertex_prog.c code instead of t_vp_build.c code.Brian2007-10-313-1/+13
|
* refactoring to begin removing dependency on tnl contextBrian2007-10-291-6/+33
|
* simplify getting of current frag progBrian2007-10-291-6/+1
|
* Refactor _tnl_UpdateFixedFunctionProgram().Brian2007-10-292-35/+57
| | | | New _mesa_get_fixed_func_vertex_program() function...
* Rename 'mms-config.' to 'mms.config'.Michal Krol2007-10-291-1/+1
| | | | | It looks like Windows does not like filenames ending with a dot, in effect renaming it to 'mms-config'.
* properly init dst reg's CondMask/Swizzle fieldsBrian2007-10-231-3/+3
|
* When in GL_FEEDBACK mode, make sure we emit color and texcoord registers.Brian2007-10-171-0/+5
|
* fix incorrect register in get_eye_normal() for rescale_normals caseBrian2007-10-151-2/+1
|
* Fix useabs logic in build_fog().Brian2007-10-151-2/+5
| | | | | We always need to compute the absolute value of the fogcoord if we're passing it through for per-fragment fog.
* remove feedback hackBrian2007-10-151-7/+0
|
* Undo prev changes.Brian2007-10-151-0/+7
|
* Use linked fragment shader inputs (if present) to determine which outputs ↵Brian2007-10-091-1/+8
| | | | are needed.
* move FLUSH_CURRENTBrian2007-09-101-3/+0
|
* Move guts of glRasterPos down into T&L module.Brian2007-09-061-0/+3
|
* Move guts of glRasterPos into tnl module, called via new ↵Brian2007-09-061-0/+508
| | | | ctx->Driver.RasterPos() function.
* Sketch out per-vertex point size.Brian2007-08-301-0/+14
| | | | | | | The code is all in place, but mostly disabled for now: In t_vp_build.c, write the VERT_RESULT_PSIZE register In sp_state_derived.c, need to emit vertex point size if drawing points. In setup_point() use the point size from the vertex.
* checkpoint in constant tracking reworkKeith Whitwell2007-08-251-0/+7
|
* added null VB->AttribPtr[i] checkBrian2007-08-171-1/+1
|
* Remove ctx->Point._Size and ctx->Line._Width.Brian2007-07-211-1/+1
| | | | | | The clamping for these values depends on whether we're drawing AA or non-AA points, lines. Defer clamping until drawing time. Drivers could compute and keep clamped AA and clamped non-AA values if desired.
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-046-24/+24
| | | | of -I flags.
* remove obsolete t_save_api.cBrian2007-06-281-1834/+0
|
* Fix point attentuation problem (bug 11042)Brian2007-05-231-4/+6
| | | | | ctx->Point._Attentuation was computed in wrong place and the VB->Eye coord Z array wasn't indexed correctly in run_point_stage().
* fog: fix potential issues with generated vp using fogRoland Scheidegger2007-05-221-8/+15
| | | | | Change the generated vertex programs (tnl/brw) to follow the same logic as the tnl fog wrt using absolute value, and sync them up a bit (untested).
* fog: fix issues with negative fog coords (may fix #10529)Roland Scheidegger2007-05-221-7/+22
| | | | | | | Rework tnl fog a bit. Make sure we always use ABS(eyez) when fog coord source is depth, OTOH it does not seem to be necessary to use it (as was done before in some cases) if fog coord source is fogcoord (just to save some work). This fixes tests/fog (the first 2 cases) with i915/i915tex.
* changes to get DDX/DDY working againBrian2007-05-021-0/+2
|
* Document a deficiency in the _swrast_Translate() function with regard to ↵Brian2007-05-021-1/+9
| | | | point size.
* Enable texture sampling for vertex programs/shaders.Brian2007-04-171-11/+47
| | | | | | | This is a bit of a hack for now because the tnl module is using the swrast module to fetch texels. The texture fetch/filter code should probably be moved into the main/ module since it doesn't really depend upon other swrast code.
* In bind_inputs() set VB->EdgeFlag to NULL if it's not needed.Brian2007-04-171-1/+4
| | | | | | Otherwise, the clip/interp code was finding VB->EdgeFlag to be non-null and reading/writing it when the memory may have been freed earlier in free_space(). This fixes several VTK segfaults/failures reported by Brad King @ Kitware.
* cleanups for t_vb_program.cRoland Scheidegger2007-04-171-13/+19
| | | | | | use VertexProgram._Current instead of VertexProgram.Current in a few more places. Only fixup fogc and psiz in case this is really a nv program (others are fine if undefined), and fix this case up so the values actually get written.
* removed unused t_vb_arbprogram stageBrian2007-04-163-3153/+0
|
* unhook t_vb_arbprogram.c code - it's going awayBrian2007-04-163-14/+19
|
* Use generic program limits instead of NV-specific ones to init program ↵Brian2007-04-161-1/+4
| | | | | | | | | constants. Previously, this limited us to 12 temp regs for vertex programs. Many vertex shaders could exceed that. This forces us to stop using t_vb_arbprogram.c for now because of its particular register indexing scheme. Need to increase bits allocated for register indexing, etc.
* Fix in t_vp_build: Missed necessary updates sometimesNicolai Haehnle2007-04-021-1/+2
| | | | | | | | | _mesa_update_state doesn't always reset VertexProgram._Current to NULL. This caused us to skip a necessary update of the fixed function vertex program sometimes. Change the logic such that we check for updates whenever the _Current program is either NULL or the program generated by t_vp_build.
* Get rid of BRK0, BRK1, CONT0, CONT1 instructions.Brian2007-03-281-4/+0
|
* fix a fragment fog regressionBrian2007-03-271-1/+1
|
* init machine->StackDepth=0Brian2007-03-271-0/+3
|
* more parenthesisBrian2007-03-271-1/+1
|
* recommit e731d8aafa98bbf9d30f83e65f28b7718be55834.Roland Scheidegger2007-03-271-1/+1
| | | | | | This got lost with glsl-compiler-1 merge, it fixes segfaults when using ATI_fragment_shader, which uses the ProgramStringNotify mechanism but doesn't have a valid program pointer.
* add parenthesis around a bit-wise AND term in _tnl_InvalidateState()Brian2007-03-271-1/+1
|
* Restore the UseTexEnvProgram logic.Brian2007-03-271-1/+1
| | | | | Was removed during glsl-compiler work. Still need to go back and revisit this because of the interaction with fragment shaders...
* merge of glsl-compiler-1 branchBrian2007-03-2619-501/+2237
|\
| * When computing render_inputs_bitset, omit primary color if we have a ↵Brian2007-03-241-10/+11
| | | | | | | | fragment program and it doesn't need FRAG_ATTRIB_COL0. Silences valgrind warnings.
| * Add the ability to generate programs that doesn't use condition codes.Brian2007-03-231-0/+4
| | | | | | | | | | | | | | 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.
| * merge from masterBrian2007-03-211-7/+16
| |\
| * | Properly compute render_inputs_bitset when using a vertex program/shader.Brian2007-03-191-7/+13
| | | | | | | | | | | | This fixes a performance regression introduced early in glsl-compiler-1 work.
| * | remove 'maxInst' parameter from _mesa_execute_program()Brian2007-02-251-2/+1
| | |
| * | remove unused 'element' parameter from _mesa_execute_program()Brian2007-02-251-1/+1
| | |
| * | s/attribs/results/Brian2007-02-251-17/+17
| | |