summaryrefslogtreecommitdiff
path: root/src/mesa/swrast_setup/ss_tritmp.h
AgeCommit message (Collapse)Author
2009-03-19swrast: Silence compiler warnings, give better structure to the code as a ↵Michal Krol
result.
2007-11-30fix broken two-sided stencilBrian
2007-11-05Check for NULL VB->EdgeFlag array.Brian
There might be a bug elsewhere, but this is a simple work-around for now. See bug 12614
2007-07-11Minor clean-up of polygon offset logic. Properly compute _MRD field.Brian
2007-05-23Fix problem w/ two-sided lighting and fragment programs (depth-peel regression)Brian
2007-05-20Overhaul/simplify SWvertex and SWspan attribute handling.Brian
Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
2007-04-18fig segment fault issue in TAG(triangle), (see bug 10589)Xiang, Haihao
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.
2007-03-10Implement gl_FrontFacing for fragment shaders.Brian
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.
2005-05-11Fix valgrind complaint, conform vertex order test.Keith Whitwell
2005-05-04Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
2004-05-04Fix minor warnings found with g++.Brian Paul
2004-03-03added clamping to polygon offset to prevent potential negative Z values and ↵Brian Paul
FP exceptions
2003-11-28Save and restore front colors on backfacing triangles rather than trying toKeith Whitwell
pull them again from the VB pointers. Avoids stride issues.
2003-11-25fix assorted g++ warningsBrian Paul
2003-11-24Merge vtx-0-2-branchKeith Whitwell
2003-06-05Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick
2002-11-13init facing to zeroBrian Paul
2002-10-29fix culling problem (bug 630649)Brian Paul
2002-10-29updated email addressesBrian Paul
2002-10-04multiple GL_POINTS can now be rendered together into one fragment spanBrian Paul
2002-10-02finished up GL_EXT_stencil_two_sideBrian Paul
2001-09-14more warning fixes (Karl Schultz)Brian Paul
2001-07-17Lighting now emits colors as CHAN_TYPE, as it used to. This will requireKeith Whitwell
minor adjustments in the dri drivers for twosided lighting to work again.
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-04-28Support for floating point color representation in tnl module.Keith Whitwell
2001-03-21* src/swrast_setup/ss_tritmp.h (quad): Changed name of this function topesco
quadfunc. * common_rules.make: Use tabs for command indentation.
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-24Lots of GLchan datatype changes.Brian Paul
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
2001-01-23Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h.Brian Paul
Replace "RGBAMode" with "rgbMode", etc. Other minor clean-ups.
2001-01-16Fix several conformance problems. Hack solution to line stipple problem.Keith Whitwell
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-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.
2000-11-16Move the transform and lighting code to two new directoriesKeith Whitwell
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.
2000-11-13Cleanup of derived state calculation prior to seperating software T&LKeith Whitwell
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.
2000-11-05A new module to provide RasterSetup and advanced triangle/line/pointKeith Whitwell
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).