summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_tritemp.h
Commit message (Collapse)AuthorAgeFilesLines
* swrast: Avoid double promotion.Matt Turner2015-07-291-1/+1
| | | | Reviewed-by: Iago Toral Quiroga <[email protected]>
* swrast: replace __FUNCTION__ with __func__Marius Predut2015-04-141-1/+1
| | | | | | | | | | | Consistently just use C99's __func__ everywhere. The patch was verified with Microsoft Visual studio 2013 redistributable package(RTM version number: 18.0.21005.1) Next MSVC versions intends to support __func__. No functional changes. Acked-by: Matt Turner <[email protected]> Signed-off-by: Marius Predut <[email protected]>
* swrast: Mark MAX_GLUINT literal with u suffix.Matt Turner2015-04-131-1/+1
| | | | | | | | Coverity is confused by the "float < int / 2" expression and suggests casting MAX_GLUINT to unsigned, which I believe it was supposed to have been already. Reviewed-by: Brian Paul <[email protected]>
* mesa: remove MAX_GLUSHORT, move MAX_GLUINTBrian Paul2015-02-241-0/+5
| | | | | | The later is only used in one place in swrast. Reviewed-by: Matt Turner <[email protected]>
* mesa: Use assert() instead of ASSERT wrapper.Matt Turner2015-02-231-2/+2
| | | | Acked-by: Eric Anholt <[email protected]>
* mesa: remove outdated version lines in commentsRico Schüller2013-06-051-1/+0
| | | | Signed-off-by: Brian Paul <[email protected]>
* mesa: Restore 78-column wrapping of license text in C-style comments.Kenneth Graunke2013-04-231-3/+4
| | | | | | | | | | | | | | The previous commit introduced extra words, breaking the formatting. This text transformation was done automatically via the following shell command: $ git grep 'THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY' | sed 's/:.*$//' | xargs -I {} sh -c 'vim -e -s {} < vimscript where 'vimscript' is a file containing: /THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY/;/\*\// !fmt -w 78 -p ' * ' :wq Reviewed-by: Brian Paul <[email protected]>
* mesa: Add "OR COPYRIGHT HOLDERS" to license text disclaiming liability.Kenneth Graunke2013-04-231-1/+1
| | | | | | | | | | | | | | | This brings the license text in line with the MIT License as published on the Open Source Initiative website: http://opensource.org/licenses/mit-license.php Generated automatically be the following shell command: $ git grep 'THE AUTHORS BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \ sed -i 's/THE AUTHORS/THE AUTHORS OR COPYRIGHT HOLDERS/' {} This introduces some wrapping issues, to be fixed in the next commit. Reviewed-by: Brian Paul <[email protected]>
* mesa: Change "BRIAN PAUL" to "THE AUTHORS" in license text.Kenneth Graunke2013-04-231-1/+1
| | | | | | | | | | | | | | | | Generated automatically be the following shell command: $ git grep 'BRIAN PAUL BE LIABLE' | sed 's/:.*$//g' | xargs -I '{}' \ sed -i 's/BRIAN PAUL/THE AUTHORS/' {} The intention here is to protect all authors, not just Brian Paul. I believe that was already the sensible interpretation, but spelling it out is probably better. More practically, it also prevents people from accidentally copy & pasting the license into a new file which says Brian is not liable when he isn't even one of the authors. Reviewed-by: Brian Paul <[email protected]>
* Replace gl_frag_attrib enum with gl_varying_slot.Paul Berry2013-03-151-100/+100
| | | | | | | | | | | | This patch makes the following search-and-replace changes: gl_frag_attrib -> gl_varying_slot FRAG_ATTRIB_* -> VARYING_SLOT_* FRAG_BIT_* -> VARYING_BIT_* Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Tested-by: Brian Paul <[email protected]>
* swast: replace renderbuffer->GetPointer() with _swrast_pixel_address()Brian Paul2011-12-241-1/+1
| | | | Reviewed-by: Eric Anholt <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-1/+1
|
* swrast: Remove support for rendering triangles into a color-index bufferIan Romanick2010-03-031-50/+0
| | | | Signed-off-by: Ian Romanick <[email protected]>
* fix span->facing computation and gl_FrontFacing initializationBrian2007-12-041-5/+4
|
* fix broken two-sided stencilBrian2007-11-301-4/+5
|
* fix StepX/StepY typoBrian2007-07-031-1/+1
|
* simplify INIT_SPAN codeBrian2007-06-291-1/+1
|
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-472/+158
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* fix some StepX/StepY mix-ups in alpha interpolationBrian2007-05-021-6/+6
|
* s/INTERP_TEX/INTERP_ATTRIBS/Brian2007-04-241-9/+10
|
* remove SWvertex->fog field, use attrib fieldBrian2007-04-231-6/+6
|
* Improve the code for interpolating fragment attributes a little. More to ↵Brian2007-04-231-26/+12
| | | | come...
* fix some CHAN_TYPE==GL_FLOAT breakageRichard Hughes2007-04-071-3/+3
|
* init span.y=0 to silence warningsBrian2007-04-041-0/+1
|
* Merge SWvertex texcoord and varying fields into attrib[] array field.Brian2007-02-051-157/+72
| | | | | Fragment texcoords and varying code is now unified in the point/line/triangle rasterization code. In the future, merge color, fog, etc. attribs.
* Replace color, z, w, texture interpolants with new generic attrib interpolants.Brian2007-02-021-101/+107
|
* New span attrStart/attrStepX/attrStepY fields to replace fog, specular, etc. ↵Brian2007-02-021-40/+40
| | | | fields. More to come.
* only setup varying vars that will be usedBrian2007-01-241-3/+9
|
* s/attribute/varying/Brian2006-12-211-4/+5
|
* varying var changesBrian2006-12-151-11/+11
|
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-1/+1
|
* More GLSL code:Michal Krol2006-04-111-1/+65
| | | | | | | | | | | | - use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
* put braces around RENDER_SPAN macro when called, not when defined. Fixes ↵Brian Paul2006-03-291-2/+4
| | | | -pedantic warnings in x11 driver
* fix color interpolation problem reported on VMSBrian Paul2005-11-151-64/+38
|
* check span.y >=0 (bug 4842)Brian Paul2005-10-211-1/+4
|
* Change zLeft and zval to GLuint. Seems to fix 32-bit Z computationBrian Paul2005-09-201-6/+9
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-4/+5
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* undef DEPTH_TYPE at endBrian Paul2005-04-221-0/+1
|
* silence warningBrian Paul2004-12-031-1/+1
|
* added cast to fix AIX color interpolation problem (bug 983144)Brian Paul2004-07-051-14/+14
|
* fix HP occlusion testing when using generic span pathBrian Paul2004-06-241-4/+0
|
* more TRIANGLE_WALK_DOUBLE tweaks (Justin Novosad)Brian Paul2004-03-141-25/+80
|
* Fix color index mode rendering.Brian Paul2004-03-091-3/+6
| | | | Changed SWvertex's index field to GLfloat and fix a few other bits.
* A bit of an overhaul of the fog code.Brian Paul2004-02-171-0/+10
| | | | | | glFogCoord didn't always work reliably. ARB fragment program fog options work now. Per-fragment fog computations are now perspective corrected.
* Added TRIANGLE_WALK_DOUBLE to optionally walk triangle edges with GLdoublesBrian Paul2004-02-171-34/+91
| | | | instead of GLfixed. (Justin Novosad)
* some code clean-upsBrian Paul2004-02-151-64/+67
|
* Minor clean-ups of variable scopes, initializations, etc.Brian Paul2004-02-151-29/+51
| | | | | New comments discussing FIXED_FRAC_BITS, SUB_PIXEL_BITS, max viewport size and rasterization accuracy.
* init vars to silence warningsBrian Paul2003-12-131-1/+1
|
* s/_backface_sign/_BackfaceSign/Brian Paul2003-09-181-1/+1
|
* Silence compiler warnings about implicit casts or conversions by supplying ↵Karl Schultz2003-08-301-11/+34
| | | | explicit casts and/or tweaking constant and variable definitions.