summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/points.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: update some old-style (K&R?) function pointer callsBrian Paul2015-11-201-1/+1
| | | | Reviewed-by: Emil Velikov <[email protected]>
* mesa: Avoid double promotion.Matt Turner2015-07-291-4/+4
| | | | Reviewed-by: Iago Toral Quiroga <[email protected]>
* mesa/main: replace Elements() with ARRAY_SIZE()Brian Paul2015-03-021-1/+1
| | | | | | | | We've been using a mix of these two macros for a while now. Let's just use the later everywhere. It seems to be the convention used by other open-source projects. Acked-by: Ilia Mirkin <[email protected]>
* mesa: Use assert() instead of ASSERT wrapper.Matt Turner2015-02-231-1/+1
| | | | 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]>
* mesa: remove DD_POINT_ATTEN flagBrian Paul2013-04-171-5/+0
| | | | | | | For the i915 driver, make it a local macro. v2: use conditional operator instead of bit shifting Reviewed-by: Eric Anholt <[email protected]>
* mesa: Fix setup of ctx->Point.PointSprite for GLES2.Eric Anholt2013-02-221-1/+2
| | | | | | | | | | | The recent change for GL core broke the older setup, which broke gl_PointCoord on pre-gen6 (where gl_PointCoord is undefined if point sprites are disabled). Fixes the new piglit GLES-2.0/glsl-fs-pointcoord test. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32429 Note: This is a candidate for the stable branches. Reviewed-by: Kenneth Graunke <[email protected]>
* mesa: Drop manual checks for outside begin/end.Eric Anholt2013-01-211-2/+0
| | | | | | | | | | | We now have a separate dispatch table for begin/end that prevent these functions from being entered during that time. The ASSERT_OUTSIDE_BEGIN_END_WITH_RETVALs are left because I don't want to change any return values or introduce new error-only stubs at this point. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
* mesa: Rename API_OPENGL to API_OPENGL_COMPAT.Paul Berry2012-11-291-1/+1
| | | | | | | | | | This should help avoid confusion now that we're using the gl_api enum to distinguishing between core and compatibility API's. The corresponding enum value for core API's is API_OPENGL_CORE. Acked-by: Eric Anholt <[email protected]> Acked-by: Matt Turner <[email protected]> Acked-by: Kenneth Graunke <[email protected]>
* mesa: remove #if _HAVE_FULL_GL checksBrian Paul2012-10-161-4/+0
| | | | | | This is basically more of the "remove FEATURE_x" clean-up. Reviewed-by: Ian Romanick <[email protected]>
* mesa: Non-sprite points are deprecatedIan Romanick2012-08-291-1/+13
| | | | Signed-off-by: Ian Romanick <[email protected]>
* mesa/es: Validate glPointParameter pname in Mesa code rather than the ES wrapperIan Romanick2012-08-291-1/+1
| | | | | | | v2: Add proper core-profile filtering. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* mesa: Require OpenGL 2.0 for GL_POINT_SPRITE_COORD_ORIGINIan Romanick2012-08-291-5/+4
| | | | | | | The comment in the code even says this is the right thing to do. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* mesa: Require that drivers supporting point sprites support point parametersIan Romanick2012-08-291-60/+46
| | | | | | | | All drivers in Mesa do. This allows a lot of extension checking code to be gutted from the function. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-3/+3
|
* mesa: use Elements() instead of MAX_TEXTURE_COORD_UNITSBrian Paul2010-02-031-1/+1
|
* mesa: Remove unnecessary header from points.c.Vinson Lee2010-01-181-1/+0
|
* mesa: Fix array out-of-bounds access by _mesa_PointParameteri.Vinson Lee2009-12-091-2/+4
| | | | | _mesa_PointParameteri calls _mesa_PointParameterfv, which uses the params argument as an array.
* mesa: Fix array out-of-bounds access by _mesa_PointParameterf.Vinson Lee2009-12-091-1/+4
| | | | | _mesa_PointParameterf calls _mesa_PointParameterfv, which uses the params argument as an array.
* Improve implementation of GL_POINT_SPRITE_COORD_ORIGIN errorsIan Romanick2009-11-251-1/+6
| | | | | | | | | | | | | | | | | | | | This enum is only supported for OpenGL 2.0. If a driver supports OpenGL 1.4 and GL_ARB_point_sprite, using this enum should generate an error. This is important because, for example, i915 and i830 can support GL_ARB_point_sprite, but they cannot support GL_POINT_SPRITE_COORD_ORIGIN. This commit just removes the check for NV_point_sprite, which is completely wrong, and add some comments describing what the code should do. I don't see an easy way to check for version >= 2.0 from inside Mesa. Perhaps we should add an extension GL_MESA_point_sprite_20 (like Intel's old GL_EXT_packed_pixels_12) to indicate that this added bit of functionality is available. Also note that glean's pointSprite test only checks for GL_ARB_point_sprite before trying to use GL_POINT_SPRITE_COORD_ORIGIN. Naturally, that fails on non-2.0 implementations (i.e., Mac OS X on GMA 950).
* mesa: increase max texture image units and GLSL samplers to 16Brian Paul2008-12-311-1/+1
| | | | | | | | | | | | | | | | The max texture coord units is still 8. All the fixed-function paths are still limited to 8 too. But GLSL shaders can use more samplers now. Note that some texcoord-related data structures are declared to be 16 elements in size rather than 8. This just simplifies the code in a few places; the extra elements aren't accessible to the user. These changes haven't been extensively tested yet, but sanity checking has been done. It should be possible to increase the max image units/samplers to 32 without doing anything special. Beyond that we'll need longer bitfields in a few places.
* mesa: fix a typo in the previous commitXiang, Haihao2008-10-311-1/+1
|
* mesa: fix an issue in _mesa_PointParameterfv().Xiang, Haihao2008-10-301-1/+1
|
* mesa: allow for extra per-context initBrian Paul2008-09-211-4/+0
| | | | (cherry picked from commit 815cdcfbc0740c66b901361620c88d99541bdad2)
* mesa: set point stateBrian Paul2008-09-211-0/+4
| | | | (cherry picked from commit af3d9dba562813ffed71691bffd7faf6665c4487)
* mesa: remove EXT/NV suffixes from _mesa_PointParameter functionsBrian Paul2008-09-211-21/+8
|
* Restore old _TriangleCaps code to fix Blender problem (bug 12164)Brian2007-09-271-0/+5
|
* fix glPointParameteriv bug 11754Jan Dvorak2007-07-291-3/+8
|
* Remove ctx->Point._Size and ctx->Line._Width.Brian2007-07-211-5/+0
| | | | | | 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.
* XXX comment about point clampingBrian2007-06-281-0/+1
|
* Fix point attentuation problem (bug 11042)Brian2007-05-231-6/+5
| | | | | ctx->Point._Attentuation was computed in wrong place and the VB->Eye coord Z array wasn't indexed correctly in run_point_stage().
* ctx->Point._Size fixRune Peterson2007-02-101-20/+7
|
* Move all the code for computing ctx->_TriangleCaps into state.c.Brian2006-12-131-12/+2
| | | | ctx->_TriangleCaps should probably go away altogether someday...
* Fix a number of point size attenuation problems.Brian Paul2005-10-071-42/+44
| | | | Move size clamping into the rasterization function.
* Handle GL_MAX_VERTEX_ATTRIBS_ARB in glGet*().Brian Paul2004-09-131-6/+2
| | | | Define 2.0 point-sprite related tokens in glheader.h (temporary).
* changes towards GL_ARB_point_sprite (two-zero)Daniel Borca2004-09-131-0/+24
|
* Added GLAPIENTRY decorations for all first level OpenGL API function entryKendall Bennett2003-10-211-5/+5
| | | | | points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler.
* Trivial changes to add support for GL_ARB_point_sprite, which is aIan Romanick2003-08-231-3/+7
| | | | subset of GL_NV_point_sprite (which was already supported).
* Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell2003-07-171-2/+50
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-4/+3
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* Header file clean-up:Brian Paul2002-10-241-5/+1
| | | | | | | | 1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
* replaced experimental MESA_sprite_point with NV_point_spriteBrian Paul2002-05-271-26/+93
|
* GL_ARB_point_parameters supportBrian Paul2002-04-021-7/+19
|
* Remove ENABLE_* flags, ctx->_Enabled.Keith Whitwell2001-03-291-2/+1
| | | | Replace with ctx->Texture._TexMatEnabled, ctx->Texture._TexGenEnabled.
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-6/+5
|
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-6/+6
|