summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_points.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Rename CoordReplaceBits back to CoordReplace.Mathias Fröhlich2016-06-161-1/+1
| | | | | | | | It used to be called like that and fits better with 80 columns. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Mathias Fröhlich <[email protected]>
* swrast: Convert swrast to use CoordsReplaceBits.Mathias Fröhlich2016-06-161-2/+2
| | | | | | | | Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Mathias Fröhlich <[email protected]>
* mesa: replace gl_context->Multisample._Enabled with ↵Bas Nieuwenhuizen2016-03-241-2/+2
| | | | | | | | | | | | _mesa_is_multisample_enabled. This removes any dependency on driver validation of the number of framebuffer samples. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Tested-by: Brian Paul <[email protected]>
* swrast: Avoid double promotion.Matt Turner2015-07-291-5/+5
| | | | 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/swrast: replace Elements() with ARRAY_SIZE()Brian Paul2015-03-021-1/+1
| | | | Acked-by: Ilia Mirkin <[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-42/+42
| | | | | | | | | | | | 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: define, use SWRAST_MAX_WIDTH/HEIGHTBrian Paul2012-02-241-3/+3
| | | | We'll get rid of MAX_WIDTH, MAX_HEIGHT soon.
* mesa: s/INLINE/inline/Brian Paul2011-10-011-1/+1
| | | | | | | INLINE is still seen in some files (some generated files, etc) but this is a good start. Acked-by: Kenneth Graunke <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-7/+7
|
* swrast: Remove unnecessary headers.Vinson Lee2010-07-311-1/+0
|
* swrast: Remove support for rendering points into a color-index bufferIan Romanick2010-03-031-40/+16
| | | | Signed-off-by: Ian Romanick <[email protected]>
* swrast: silence double->float assignment warningsBrian Paul2010-01-271-6/+6
| | | | Reported by Karl Schultz.
* swrast: Remove unnecessary header from s_points.c.Vinson Lee2010-01-121-1/+0
|
* swrast: fix incorrect texcoord attribute testBrian Paul2009-07-311-3/+3
|
* mesa: add new FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC fragment program inputsBrian Paul2009-07-291-14/+12
| | | | | | | | | | Previously, the FOGC attribute contained the fragment fog coord, front/back- face flag and the gl_PointCoord.xy values. Now each of those things are separate fragment program attributes. This simplifies quite a few things in Mesa and gallium. Need to test i965 driver and fix up point coord handling in the gallium/draw module...
* swrast: fix point rendering function selectionBrian Paul2009-04-071-1/+4
| | | | | Need to clamp default point size to min/max range before checking if it's one. Fixes glean pointAtten test.
* mesa: adjust texcoords for swrast sprite points.Brian Paul2008-10-061-2/+2
| | | | Fixes glean pointSprite test w/ software rendering
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-5/+5
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* mesa: fix issues around multisample enableRoland Scheidegger2008-07-021-1/+1
| | | | | multisample enable is enabled by default, however gl mandates multisample rendering rules only apply if there's also a multisampled buffer.
* check if span length > 0 before calling _swrast_write_rgba_span()Brian2008-01-051-5/+7
|
* fix broken two-sided stencilBrian2007-11-301-1/+9
|
* Consolidate point size computation, clamping in get_size().Brian2007-11-221-36/+35
| | | | | Also, apply user-defined clamp limits to point size even when not using attentuation or program-computed size.
* Implement gl_PointCoord attribute for GLSL fragment shaders.Brian2007-10-241-50/+67
| | | | Contains the normalized fragment position within a point sprite.
* tweak point rast to fix conform failureBrian2007-09-271-4/+6
|
* fix even-sized point positioning (bug 11874)Brian2007-08-071-4/+4
|
* Remove ctx->Point._Size and ctx->Line._Width.Brian2007-07-211-4/+4
| | | | | | 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.
* simplify INIT_SPAN codeBrian2007-06-291-3/+3
|
* overhaul point rasterization, no longer use s_pointtemp.hBrian2007-06-291-192/+465
|
* fix bug rendering points with fragment program (see #11330)Brian2007-06-221-7/+13
|
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-12/+27
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* s/TEXTURE/ATTRIBS/Brian2007-04-241-5/+5
|
* Use Point._Size in calculationKeith Whitwell2004-12-291-1/+1
|
* added SPECULAR flag for sprite point functionsBrian Paul2004-04-091-4/+4
|
* Trivial changes to add support for GL_ARB_point_sprite, which is aIan Romanick2003-08-231-1/+1
| | | | subset of GL_NV_point_sprite (which was already supported).
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-7/+5
| | | | | | 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-3/+3
|
* 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
* Implemented GL_NV_texture_rectangle extension.Brian Paul2002-06-151-4/+4
| | | | | | | | | 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.
* replaced experimental MESA_sprite_point with NV_point_spriteBrian Paul2002-05-271-4/+5
|
* sw_span can now hold x/y arrays of fragment positions - getting ready toBrian Paul2002-02-021-11/+10
| | | | | ditch the pb (pixel buffer) code. Converted point drawing, bitmaps and aa lines to use new span functions.
* implemented vertex program point size controlBrian Paul2002-01-061-3/+3
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-8/+7
|
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-3/+3
|
* Allow swrast to cope (fairly) cleanly with GL_SEPERATE_SPECULAR whenKeith Whitwell2001-02-161-1/+15
| | | | | | | | | | | | | texturing is not enabled, and without requiring the two colors be added externally. As a part of this, collapsed the decomposition of quads into triangles inside swrast to be hardwired into _swrast_Quad; removed s_quads.[ch]. Removed checks on texture state from t_vb_light.c, which was previously required by swrast. Moved the t_dd_ templates to a new directory.