summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vb_cliptmp.h
AgeCommit message (Collapse)Author
2009-10-22Revert "Store clipping distance for user clip planes as part of vertex ↵Ian Romanick
processing" This reverts commit f058b25881e08c9d89a33345e5c84e1357396932. This change is completely wrong in so many ways. When clip distances are generated as part of vertex processing, they must be interpolated to perform clipping. Geometric clipping goes right out the window.
2009-10-13Store clipping distance for user clip planes as part of vertex processingIan Romanick
Once the clipping distance is calculated and stored per vertex, the distances can be re-used when clipping is actually performed. This doesn't have any immediate benefit, but it paves the way for implementing gl_ClipDistance in vertex shaders and result.clip[] in vertex programs. This has not produces any oglconform regressions on my G31 system which uses software TNL. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2009-06-03tnl: updated clip debug code (disabled)Brian Paul
2009-05-07 tnl: added some clip debug/print code (disabled)Brian Paul
2009-05-07tnl: replace 0x3f with CILP_FRUSTUM_BITSBrian Paul
2006-10-18Fix broken line clipping.Brian Paul
When both ends of the line were clipped, we were using the new v0 instead of the original v0 when computing the location of the second vertex. Thus, the second vertex's position was incorrect. Thanks to Heath Feather for finding a test case.
2006-10-18Fix a dangerous use of ASSERT in an else-clause not enclosed in braces.Brian Paul
We've been lucky if this hasn't been causing line rendering bugs.
2006-07-20use ctx->Light.ShadeModel instead of ctx->_TriangleCapsBrian Paul
2006-04-06Fix line clipping bug 6512.Brian Paul
This fix is to discard the line if both dot products are negative.
2005-12-01Clean up clipping somewhatKeith Whitwell
- no need to update ClipMask on generated vertices - remove the VB->LastClipped value Line clipping algorithm changed and simplified somewhat. The old one was based on the triangle routine and probably wouldn't have recognized lines that were clipped down to nothing (ie culled, but not by a single plane).
2004-07-01Rename the various function types in t_context.h to include a tnl_ prefix.Keith Whitwell
2003-11-24Merge vtx-0-2-branchKeith Whitwell
2003-06-05Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick
2003-03-01Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul
Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
2002-10-29updated email addressesBrian Paul
2002-03-29Replaced ClipEnabled[] array and _AnyClip with ClipPlanesEnabled bitmask.Brian Paul
2001-07-13replaced __inline with INLINEBrian Paul
2001-07-12Rename some of the tnl->Driver.* functions to tnl->Driver.Render.*, to make itKeith Whitwell
clear that these are owned by t_vb_render.c. Make swrast_setup opaque - it now hooks itself directly into tnl->Driver.Render.*. Add a _swsetup_Wakeup() call that does this. Update X11 (tested), osmesa and FX drivers for this change. FX compiles but is probably broken as the changes there are large. It was the only remaining driver that used the internal _swsetup_ functions for interp and copy_pv. This usage has been replaced with code from the DRI tdfx driver.
2001-05-09Use correct PV when clipping.Keith Whitwell
2001-04-28Support for floating point color representation in tnl module.Keith Whitwell
2001-03-19Split driver struct into swrast/tnl/core components.Keith Whitwell
2001-03-12Consistent copyright info (version number, date) across all files.Gareth Hughes
2001-01-29Removed knowledge of swrast Clear/Bitmap/Accum/Draw/Read/CopyPixelsKeith Whitwell
functions from core mesa -- if drivers need these fallbacks they must now call them themselves. Introduced hooks for clip-vertex-interpolation and the rendering of clipped lines and polygons. Allows drivers to interpolate their hardware-format vertices directly. Used in dri drivers to replace fastpath code. Slight optimizations to pipeline build/run routines.
2001-01-17Fixes for performance bug on compiled array element paths.Keith Whitwell
2001-01-13Fix crash in book/stencil.Keith Whitwell
Allow drivers to perform the perspective divide themselves. Assembly to do cliptesting without perspective divide for size-4 vectors.
2001-01-05Remove 'pv' parameter from Line/Tri/Point funcs. The provoking vertexKeith Whitwell
is always the last vertex parameter. Modify clipping to preserve pv colors. Modify swrast and X11 driver to expect the pv in the last vertex (was looking in the first vertex previously). Remove all handling of flatshading from swrast_setup. Allow drivers to override the unclipped render tabs in tnl_render_stage directly. (Like in 3.4). Removed fxsimplerender stage. Modified t_vb_rendertmp.h to remove the need for 'parity' arguments in RENDER_TRI macros.
2000-12-28Add render stage for unclipped vb's to fx driver.Keith Whitwell
Bump MAX_TEXTURE_UNITS to 8 Fix mem. leak in destroy_lists Fix crash in q3 (cva generally)
2000-12-27fix sproingies bugKeith Whitwell
2000-12-27Fixes for compiling assembly (disable unused 'masked' versions)Keith Whitwell
Fixes for compiling without debug. Fix line clipping Fix unfilled polygon clipping (should be correct now).
2000-12-26Major rework of tnl moduleKeith Whitwell
New array_cache module Support 8 texture units in core mesa (now support 8 everywhere) Rework core mesa statechange operations to avoid flushing on many noop statechanges.