aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_lines.c
Commit message (Collapse)AuthorAgeFilesLines
* swrast: Avoid double promotion.Matt Turner2015-07-291-2/+2
| | | | Reviewed-by: Iago Toral Quiroga <[email protected]>
* swrast: remove unneeded #include of colormac.hBrian Paul2015-04-011-1/+0
| | | | | Acked-by: Matt Turner <[email protected]> Reviewed-by: Mark Janes <[email protected]>
* mesa: Use assert() instead of ASSERT wrapper.Matt Turner2015-02-231-5/+5
| | | | 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-6/+6
| | | | | | | | | | | | 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]>
* swrast: fix wrong assignments in _swrast_add_spec_terms_line()Brian Paul2012-08-291-2/+2
|
* swrast: define, use SWRAST_MAX_WIDTH/HEIGHTBrian Paul2012-02-241-1/+1
| | | | We'll get rid of MAX_WIDTH, MAX_HEIGHT soon.
* swrast: Fix fixed-function fragment processingChad Versace2012-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On i965, _mesa_ir_link_shader is never called. As a consequence, the current fragment program (ctx->FragmentProgram->_Current) exists but is invalid because it has no instructions. Yet swrast continued to attempt to use the empty program. To avoid using the empty program, this patch 1) defines a new function, _swrast_use_fragment_program, which checks if the current fragment program exists and differs from the fixed function fragment program, and, when appropriate, 2) replaces checks of the form if (ctx->FragmentProgram->_Current == NULL) with if (_swrast_use_fragment_program(ctx)) Fixes the following oglconform regressions on i965/gen6: api-fogcoord(basic.allCases.log) api-mtexcoord(basic.allCases.log) api-seccolor(basic.allCases.log) api-texcoord(basic.allCases.log) blend-separate(basic.allCases) colorsum(basic.allCases.log) The tests were ran with the GLXFBConfig: visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat ---------------------------------------------------------------------------- 0x021 24 tc 0 32 0 r y . 8 8 8 8 . . 0 24 8 0 0 0 0 0 0 None (Note: I originally believed that the hunk in _swrast_update_fragment_program was unnecessary. But it is required to fix blend-separate.) Note: This is a candidate for the 8.0 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43327 Reveiwed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Chad Versace <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-4/+4
|
* swrast: Remove support for rendering lines into a color-index bufferIan Romanick2010-03-031-43/+5
| | | | Signed-off-by: Ian Romanick <[email protected]>
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-1/+1
|
* swrast: Remove unnecessary header in s_lines.c.Vinson Lee2010-01-121-1/+0
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-4/+4
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* don't use rgba_line() if CHAN_BITS==32Brian2007-07-261-1/+5
|
* Remove ctx->Point._Size and ctx->Line._Width.Brian2007-07-211-7/+9
| | | | | | The clamping for these values depends on whether we're drawing AA or non-AA points, lines. Defer clamping until drawing time. Drivers could compute and keep clamped AA and clamped non-AA values if desired.
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-60/+52
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* trim down the number of line drawing functions, special casesBrian2007-04-241-36/+5
|
* fix varying interpolationBrian2007-01-241-2/+5
|
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-1/+1
|
* remove unneeded #includeBrian Paul2005-11-051-1/+0
|
* check swrast->_FogEnabled instead of ctx->Fog.EnabledBrian Paul2005-10-311-3/+3
|
* use clamped Line._Width in calculationsKeith Whitwell2004-12-291-6/+6
|
* Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().Brian Paul2004-12-181-10/+6
|
* Change the dispatch offsets for the VertexAttrib*NV functions so they don'tBrian Paul2004-11-271-1/+1
| | | | | | | alias with the corresponding ARB functions. GL_ARB_vertex_shader (and OpenGL 2.0's) VertexAttrib functions don't alias with conventional vertex attributes, as GL_NV_vertex_program does. So, the ARB and NV version of VertexAttrib need to be distinct.
* Update NEED_SECONDARY_COLOR macro to test if either vertex/fragmentBrian Paul2003-12-091-0/+1
| | | | | programs are enabled and if they need secondary color input register. Patch by Karl Rasche, with tweaks by Brian.
* Move away from using the ctx->_TriangleCaps bitfield.Brian Paul2003-09-181-1/+2
| | | | | New macros in context.h for testing state: NEED_SECONDARY_COLOR and NEED_TWO_SIDED_LIGHTING.
* Silence compiler warnings about implicit casts or conversions by supplying ↵Karl Schultz2003-08-301-7/+5
| | | | explicit casts and/or tweaking constant and variable definitions.
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-4/+3
| | | | | | Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
* replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul2003-03-251-15/+15
|
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-2/+1
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* fix an assertionBrian Paul2003-01-201-3/+3
|
* Overhaul of line drawing template code. Make better use of sw_span mechanism.Brian Paul2002-11-141-646/+106
|
* s/printf/_mesa_printf/Brian Paul2002-10-301-17/+17
|
* struct sw_span is again allocated on the stack, but the arrays of spanBrian Paul2002-08-071-206/+256
| | | | | | | data are broken out into a new struct span_arrays which is allocated per-context (to avoid huge stack allocations - a problem on Windows). This lets us use span.redStep instead of span->redStep (for example) to hopefully get slightly better performance in the triangle functions.
* Implemented GL_NV_texture_rectangle extension.Brian Paul2002-06-151-3/+3
| | | | | | | | | Replace struct gl_texure_object's Dimension w/ Target field. Added _EnabledUnits to struct gl_texture_attrib - the _ReallyEnabled field is obsolete, but still present for now. This effectively removes the 8-texture units limit, 32 units now possible, but unlikely! New TEXTURE_1D/2D/3D/CUBE/RECT_BIT tokens for unit->_ReallyEnabled field. Updated device drivers to use ctx->Texture._EnabledUnits.
* Allocate a sw_span struct in the swrast context instead of allocating itBrian Paul2002-04-191-205/+187
| | | | | on the stack frame in the point/line/triangle functions. (Klaus Niederkrueger) This should solve the performance problem Karl found on Windows.
* casts to fix GLint/GLuint mismatchesBrian Paul2002-04-191-3/+5
|
* Klaus Niederkrueger's latest changes: use INIT_SPAN() to init span primitiveBrian Paul2002-04-121-49/+57
| | | | type, width, interp mask and array mask.
* added SPAN_SPEC flag in smooth_multitextured_line()Brian Paul2002-02-151-2/+2
|
* Converted line drawing over to new span code, pb no longer used.Brian Paul2002-02-021-726/+453
| | | | | Big clean-up of line drawing code. Removed many obsolete span processing functions.
* changed PB (pixel buffer) to use texcoord[4] arrayBrian Paul2002-01-161-47/+43
|
* set PB->haveSpec in line functions that emit specular colorBrian Paul2002-01-161-1/+3
|
* casts to silence warnings from gcc 2.96Brian Paul2001-11-061-2/+2
|
* removed a semicolon in the USE() macroBrian Paul2001-08-201-2/+2
|
* new debugging codeBrian Paul2001-08-201-19/+39
|
* check for PB overflow in general_flat_rgba_line()Brian Paul2001-06-111-3/+10
|
* fixed a number of multi-texture line bugsBrian Paul2001-05-211-17/+13
|