summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
AgeCommit message (Collapse)Author
2005-11-01Add a NotifyInputChanges() callback so that drivers (particularly tnlKeith Whitwell
drivers) can track when the sizes or strides of incoming VB->AttribPtr arrays have changed.
2005-11-01Several fp and vp tweaks:Keith Whitwell
- 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.
2005-11-01Fix segmentation fault in _tnl_ProgramCacheDestroy().Aapo Tahkola
2005-11-01Re-org and clean-up of vertx/fragment program limits (instructions,Brian Paul
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.
2005-10-31Need more than 200 instructions.Aapo Tahkola
2005-10-31Improve tnl program searching performance.Aapo Tahkola
2005-10-29added some assertions to catch unexpected swizzle values in cvp_emit_arg(), ↵Brian Paul
currently fails sometimes
2005-10-29reduced swizzle commentBrian Paul
2005-10-29added warning about use of REG_SCRATCHBrian Paul
2005-10-29fix errors in RoughApproxPower(), do_LIT(), _tnl_program_string()Brian Paul
2005-10-28Keith's fixes for RSW and XPD (need temporaries)Brian Paul
2005-10-28include tnl.h to silence warningBrian Paul
2005-10-28Added assert that result != arg0 in do_RSW. This currently fails and needs ↵Brian Paul
fixing.
2005-10-28TNL module needs to implement ctx->Driver.ProgramStringNotify() functionBrian Paul
so that calls to glProgramStringARB() to specify a new program causes the TNL-attached data to get recomputed.
2005-10-10fixed constant fogcoord bug (#4729)Brian Paul
2005-10-07Fix a number of point size attenuation problems.Brian Paul
Move size clamping into the rasterization function.
2005-09-23 Committing in .Jouk Jansen
1) change compilation on VMS to use IEEE floating points 2) one more problem with _mesa_sprintf solved Modified Files: Mesa/docs/README.VMS Mesa/progs/demos/descrip.mms Mesa/progs/tests/descrip.mms Mesa/progs/util/descrip.mms Mesa/progs/xdemos/descrip.mms Mesa/src/glu/mesa/descrip.mms Mesa/src/glu/sgi/descrip.mms Mesa/src/glut/glx/descrip.mms Mesa/src/mesa/array_cache/descrip.mms Mesa/src/mesa/drivers/common/descrip.mms Mesa/src/mesa/drivers/osmesa/descrip.mms Mesa/src/mesa/drivers/x11/descrip.mms Mesa/src/mesa/glapi/descrip.mms Mesa/src/mesa/main/descrip.mms Mesa/src/mesa/main/texobj.c Mesa/src/mesa/math/descrip.mms Mesa/src/mesa/shader/descrip.mms Mesa/src/mesa/shader/grammar/descrip.mms Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/swrast_setup/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
2005-09-19additional wrapper updates, bug 4468Brian Paul
2005-09-16use mesa import wrappers, bug 4468Brian Paul
2005-09-14Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.Brian Paul
2005-08-25removed GL_HP_occlusion_test extensionBrian Paul
2005-08-12added FREXPF() macro (bug 4060)Brian Paul
2005-08-10Check for prim/vertex store non-null before messing with refcounts.Keith Whitwell
2005-08-09Decrement the context's refcounts on part-used storage structs onKeith Whitwell
context destroy. Fixes memory leak.
2005-08-06Follow suggestion by Aapo Tahkola to fix giant memory leak from forgetting ↵Vladimir Dergachev
to free the key when entry was already found (presumably a common case).
2005-07-22some GLuint idx -> GLint idx changesBrian Paul
2005-07-22Make the vertex program source register Index field a signed int sinceBrian Paul
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.
2005-07-18Wrap every place that accesses a dispatch table with a macro. A new script-Ian Romanick
generated file, called src/mesa/glapi/dispatch.h, is added. This file contains three macros for each API function. It contains a GET, a SET, and a CALL. Each of the macros take a pointer to the context and a pointer to the dispatch table. In several threads on mesa3d-dev we discussed replacing _glapi_add_entrypoint with a new function called _glapi_add_dispatch. For this discussion, the important difference between the two is that the caller of _glapi_add_dispatch does *not* know what the dispatch offset will be at compile time. Because of this callers need to track the dispatch offset returned by _glapi_add_dispatch. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2 The downside is that driver code then has to access the dispatch table two different ways. It accesses it using structure tags (e.g., exec->Begin) for functions with fixed offsets and via a remap table (e.g., exec[ remap->NewExtensionFunction ]) for functions without fixed offsets. Yuck! Using the macros allows both types of functions to be accessed identically. If a driver needs to set a pointer for Begin, it does 'SET_Begin(ctx, exec, my_begin_function)'. If it needs to set a pointer for NewExtensionFunction, it does 'SET_NewExtensionFunction(ctx, exec, my_NewExtensionFunction_function)'. Furthermore, if at some point in the future a static offset is assigned for NewExtensionFunction, only the macros need to change (instead of every single place that accesses a table for that function). This code differs slightly from the originally posted patches in that the CALL, GET, and SET marcos no longer take a context pointer as a parameter. Brian Paul had suggested that the remap table could be stored as a global since it would be set at CreateScreen time and would be constant for all contexts. This change reflects that feedback. http://marc.theaimsgroup.com/?t=112087194700001&r=1&w=2
2005-07-15Check for null program->Parameters pointer in validate_vertex_program().Brian Paul
GL_NV_vertex_program programs can't directly reference GL state so this pointer is always NULL.
2005-07-15added commentsBrian Paul
2005-07-13Use the LDEXPF wrapper macro.Keith Whitwell
2005-07-13Wrap RESTORE_FPU/RND_NEG_FPU declarations with check for USE_SSE_ASM.Keith Whitwell
2005-07-10Add runtime compiled x87 implementations for most of the remainingKeith Whitwell
opcodes. When enabled via environment vars, gears runs and almost looks right but other apps are still quite buggy.
2005-07-01Use frexp on Windows; frexpf is not available.Karl Schultz
2005-07-01replace some free() calls with _mesa_free()Brian Paul
2005-06-30Add a set of predicate functions for testing matrices instead of directlyBrian Paul
testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private.
2005-06-28just code clean-ups and new commentsBrian Paul
2005-06-27include t_vp_build.hBrian Paul
2005-06-27added _tnl_ProgramCacheDestroy() prototypeBrian Paul
2005-06-27make create_new_program() staticBrian Paul
2005-06-21include light.h to silence warningBrian Paul
2005-06-19Define __FUNCTION__ as a preprocessor symbol in glheader.h if we're notBrian Paul
using GCC or VMS.
2005-06-14 Committing in .Jouk Jansen
OpenVMS updates Modified Files: Mesa/src/mesa/tnl/descrip.mms Mesa/src/mesa/tnl/t_vp_build.c ----------------------------------------------------------------------
2005-06-10remove debug printsKeith Whitwell
2005-06-10Allow the print opcode to compileKeith Whitwell
2005-06-10Fix typo in spot attenuationKeith Whitwell
2005-06-10Correct test for attenuation.Keith Whitwell
DISSASEM changes.
2005-06-10Fix colormaterial flag calculations.Keith Whitwell
Fix lighting alpha result.
2005-06-10Add notes about intended precision of opcodes.Keith Whitwell
Remove dead floating point twiddles. Fix bug translating MAD->MUL,ADD.
2005-06-09Fix a couple of bugletsKeith Whitwell