aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast_setup/ss_tritmp.h
Commit message (Collapse)AuthorAgeFilesLines
* tnl: Replace deprecated ColorPtr[] with AttribPtr or new BackfaceColorPtr.Eric Anholt2009-11-191-8/+8
|
* tnl: Replace deprecated IndexPtr[] with AttribPtr[] or new BackfaceIndexPtrEric Anholt2009-11-191-1/+1
|
* swrast: Silence compiler warnings, give better structure to the code as a ↵Michal Krol2009-03-191-2/+2
| | | | result.
* fix broken two-sided stencilBrian2007-11-301-2/+0
|
* Check for NULL VB->EdgeFlag array.Brian2007-11-051-8/+10
| | | | | There might be a bug elsewhere, but this is a simple work-around for now. See bug 12614
* Minor clean-up of polygon offset logic. Properly compute _MRD field.Brian2007-07-111-19/+21
|
* Fix problem w/ two-sided lighting and fragment programs (depth-peel regression)Brian2007-05-231-14/+52
|
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-44/+44
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* fig segment fault issue in TAG(triangle), (see bug 10589)Xiang, Haihao2007-04-181-19/+24
| | | | | | Bit SS_TWOSIDE_BIT is set if gl_FrontFacing lives in fragment input (see commit 10b5895597d5e069183cb647d17eb412effceb4f). However, VB->ColorPtr[1] isn't assigned after that.
* Implement gl_FrontFacing for fragment shaders.Brian2007-03-101-2/+1
| | | | | | For the time being, we put the gl_FrontFacing value in the FOGC.Y input register. Combining FOGC and FrontFacing in one register is a bit of a hack and may need to be changed someday.
* Fix valgrind complaint, conform vertex order test.Keith Whitwell2005-05-111-6/+20
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-1/+1
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Fix minor warnings found with g++.Brian Paul2004-05-041-1/+1
|
* added clamping to polygon offset to prevent potential negative Z values and ↵Brian Paul2004-03-031-16/+15
| | | | FP exceptions
* Save and restore front colors on backfacing triangles rather than trying toKeith Whitwell2003-11-281-13/+28
| | | | pull them again from the VB pointers. Avoids stride issues.
* fix assorted g++ warningsBrian Paul2003-11-251-6/+6
|
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-6/+6
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* init facing to zeroBrian Paul2002-11-131-4/+4
|
* fix culling problem (bug 630649)Brian Paul2002-10-291-3/+3
|
* updated email addressesBrian Paul2002-10-291-2/+2
|
* multiple GL_POINTS can now be rendered together into one fragment spanBrian Paul2002-10-041-2/+3
|
* finished up GL_EXT_stencil_two_sideBrian Paul2002-10-021-1/+2
|
* more warning fixes (Karl Schultz)Brian Paul2001-09-141-4/+4
|
* Lighting now emits colors as CHAN_TYPE, as it used to. This will requireKeith Whitwell2001-07-171-5/+5
| | | | minor adjustments in the dri drivers for twosided lighting to work again.
* Rename some of the tnl->Driver.* functions to tnl->Driver.Render.*, to make itKeith Whitwell2001-07-121-9/+13
| | | | | | | | | | | | | | 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.
* Support for floating point color representation in tnl module.Keith Whitwell2001-04-281-5/+5
|
* * src/swrast_setup/ss_tritmp.h (quad): Changed name of this function topesco2001-03-211-3/+3
| | | | | quadfunc. * common_rules.make: Use tabs for command indentation.
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-2/+2
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-18/+17
|
* Lots of GLchan datatype changes.Brian Paul2001-01-241-4/+4
| | | | | | | | | Added GLvector4us datatype in math/m_vector.[ch] Added _math_trans_4us() in math/m_translate.[ch] Choose GLvector4ub, GLvector4us, GLvector4f at compile time based on CHAN_BITS. Made Driver.ClearColor() and Driver.ClearIndex() optional driver functions. Changed args to Driver.ClearColor(), updated drivers. Reordered files in Makefile.X11
* Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h.Brian Paul2001-01-231-0/+2
| | | | | Replace "RGBAMode" with "rgbMode", etc. Other minor clean-ups.
* Fix several conformance problems. Hack solution to line stipple problem.Keith Whitwell2001-01-161-8/+2
|
* Remove 'pv' parameter from Line/Tri/Point funcs. The provoking vertexKeith Whitwell2001-01-051-145/+39
| | | | | | | | | | | | | | 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.
* Major rework of tnl moduleKeith Whitwell2000-12-261-76/+84
| | | | | | | 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.
* Move the transform and lighting code to two new directoriesKeith Whitwell2000-11-161-3/+3
| | | | | | | | | | | | | | | math: Provides basic matrix and vector functionality that might be useful to multiple software t&l implementations, and is used by core mesa to manage the Model, Project, etc matrices. tnl: The real transform & lighting code from core mesa, including everything from glVertex3f through vertex buffer handling, transformation, clipping, lighting and handoff to a driver for rasterization. The interfaces of these can be further tightened up, but the basic splitting up of state and code move is done.
* Cleanup of derived state calculation prior to seperating software T&LKeith Whitwell2000-11-131-60/+66
| | | | | | | | | | | | into a new directory. Specifically the handling of changes to lighting lighting space (light in model vs. light in eye) have been revamped. Moved several derived values used only by swrast into that directory. Removed direct calls to swrast_flush() from vbrender.c -- pushed into ctx->Driver.RenderFinish. Optimized flat-shading case in swrast_setup.
* A new module to provide RasterSetup and advanced triangle/line/pointKeith Whitwell2000-11-051-0/+286
functionality layered on top of the software rasterizer. An example entrypoint: void _swsetup_Triangle( GLcontext, GLuint, GLuint, GLuint, GLuint ) will coerce the software rasterizer to draw flat, twoside-lit, unfilled and offset triangles (including decomposition to points or lines).