summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Fix array out-of-bounds access by _mesa_TexGenf.Vinson Lee2009-12-051-1/+4
| | | | | | _mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument as an array. (cherry picked from commit ca5a7aadb4361e7d053aea8687372cd44cbd8795)
* mesa: Fix array out-of-bounds access by _mesa_TexGeni.Vinson Lee2009-12-051-1/+4
| | | | | | _mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument as an array. (cherry picked from commit d55fb7c835b56951f05a058083e7eda264ba192e)
* mesa: Fix array out-of-bounds access by _mesa_TexParameterf.Vinson Lee2009-12-051-2/+7
| | | | | | _mesa_TexParameterf calls set_tex_parameterf, which uses the params argument as an array. (cherry picked from commit 270d36da146b899d39e08f830fe34b63833a3731)
* mesa: Fix array out-of-bounds access by _mesa_TexParameterf.Vinson Lee2009-12-051-2/+4
| | | | | | _mesa_TexParameterf calls set_tex_parameteri, which uses the params argument as an array. (cherry picked from commit a201dfb6bf28b89d6f511c2ec9ae0d81ef18511d)
* mesa: Fix array out-of-bounds access in _mesa_TexEnvf.Vinson Lee2009-12-041-1/+4
| | | | | | _mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument as an array. (cherry picked from commit a11d60d14caf8efc07f70af63b57b33273f8cf9b)
* mesa: set version string to 7.6.1-rc2mesa_7_6_1_rc2Ian Romanick2009-11-301-1/+1
|
* 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: define 32bit byteswap for AIX.Tom Fogal2009-11-191-1/+6
| | | | | | Fixes `xlib' driver build on AIX. Signed-off-by: Brian Paul <[email protected]>
* mesa: set version string to 7.6.1-rc1Brian Paul2009-11-181-1/+1
|
* mesa: added cast to silence warningBrian Paul2009-11-041-1/+1
|
* mesa: fix broken pack_histogram() case for GLhalfBrian Paul2009-11-041-3/+4
|
* mesa: silence warning from gcc 4.4.1Brian Paul2009-11-041-2/+2
|
* mesa: (GLint64) casts in get.c to silence Visual Studio warningsBrian Paul2009-11-032-173/+173
| | | | Revised version of a patch from Karl Schultz.
* mesa: added GLAPIENTRY keywords for sync object functionsKarl Schultz2009-11-032-12/+12
| | | | Signed-off-by: Brian Paul <[email protected]>
* mesa: Fix memory leak if we run out of memoryVinson Lee2009-10-281-1/+5
| | | | Signed-off-by: Brian Paul <[email protected]>
* mesa: remove FBO texture depth/stencil testBrian Paul2009-10-231-12/+0
| | | | | The texture format should not be checked until validation time since the format might be changed by a subsequent glTexImage() call.
* mesa: fix broken _mesa_str_checksum()Brian Paul2009-10-231-2/+2
|
* mesa: fix GL_TEXTURE_INTERNAL_FORMAT query for compressed formatsBrian Paul2009-10-231-1/+9
| | | | | Need to return the actual compressed format when the user originally requested a generic compressed format.
* mesa: added _mesa_compressed_format_to_glenum()Brian Paul2009-10-232-0/+54
| | | | | | Maps a compressed MESA_FORMAT_x to correspding GLenum. Needed for querying a texture's actual format when a generic format was originally requested.
* mesa: change s3tc vs. fxt1 priority when choosing compressed formatsBrian Paul2009-10-231-8/+8
|
* mesa: code refactoring- new _mesa_finish(), _mesa_flush()Brian Paul2009-10-222-8/+37
|
* mesa: Fix Mac OS build.Vinson Lee2009-10-201-0/+3
| | | | | strtod_l needs the xlocale.h header on Mac OS. It's possible other non-Linux OSes would need this header too.
* mesa: use C locale for _mesa_strtod()Brian Paul2009-10-161-0/+12
| | | | | | | | | _mesa_strtod() is used for shader/program parsing where the decimal point character is always '.' Use strtod_l() with a "C" locale to ensure correct string->double conversion when the actual locale uses another character such as ',' for the decimal point. Fixes bug 24531.
* mesa: fix incorrect assertion in _mesa_add_aux_renderbuffers()Brian Paul2009-10-091-1/+1
| | | | Fixes bug 24426.
* mesa: fix return value when clipping {Read,Draw}Pixels height <= 0Brian Paul2009-10-051-2/+2
| | | | | | Signed-off-by: Ben Skeggs <[email protected]> (cherry picked from master, commit 7aeaca33c331f70d507fc83583b13b8d9fc3e847)
* Use _mesa_select_tex_image() rather than hardcoding face 0.Michel Dänzer2009-10-051-2/+1
| | | | | | | | Fixes crash loading a map in sauerbraten with hwmipmap 1 in ~/.sauerbraten/config.cfg.
* mesa: fix incorrect default texture binding in unbind_texobj_from_texunits()Brian Paul2009-10-021-1/+1
| | | | | If we deleted a currently bound texture, we were always reverting the texture binding to the default 1D texture rather than the proper default texture.
* mesa: fix memory leak when generating mipmaps for compressed texturesBrian Paul2009-10-011-6/+10
|
* mesa: add missing return when out of memoryBrian Paul2009-10-011-0/+1
|
* mesa: fix potential uninitialized memory readsBrian Paul2009-10-011-0/+6
|
* mesa: bump version to 7.6.1Brian Paul2009-09-291-3/+3
|
* mesa: work-around glXCopyContext() bug in _mesa_copy_texture_state()Brian Paul2009-09-291-8/+14
| | | | See bug 24217.
* Prep for 7.6 releaseIan Romanick2009-09-281-1/+1
|
* Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul2009-09-241-6/+1
|\
| * mesa: remove glEnable(GL_DEPTH_BOUNDS_TEST_EXT) check/warningBrian Paul2009-09-241-5/+0
| | | | | | | | | | At the time of the enable there may not be a Z buffer, but one may be attached to the FBO later.
| * mesa: remove rgbMode check in enable_texture()Brian Paul2009-09-241-1/+1
| | | | | | | | | | | | | | If the currently bound FBO isn't yet validated it's possible for rgbMode to be zero so we'll lose the texture enable. This could fix some FBO rendering glitches, but I don't know of any specific instances.
| * mesa: fix error message textBrian Paul2009-09-221-1/+1
| |
* | i965: Emit zero initialization for NV VP temporaries as required.Eric Anholt2009-09-241-0/+1
| | | | | | | | | | | | | | This is similar to what r300 does inside the driver, but I've added it as a generic option since it seems most hardware will want it. Fixes piglit nv-init-zero-reg.vpfp and nv-init-zero-addr.vpfp.
* | mesa: replace assertion with no-op function assignmentBrian Paul2009-09-241-1/+12
| |
* | mesa: added default case return to silence warningBrian Paul2009-09-241-0/+1
| |
* | mesa: fix more buffer object error messagesBrian Paul2009-09-221-3/+3
| |
* | mesa: make max_buffer_index() a non-static functionBrian Paul2009-09-212-8/+14
| |
* | mesa: add some debug info to teximage.cMaciej Cencora2009-09-211-0/+87
| |
* | Merge branch 'mesa_7_5_branch' into mesa_7_6_branchIan Romanick2009-09-161-0/+659
|\| | | | | | | | | Conflicts: src/mesa/main/dlist.c
| * mesa: compile glUniformMatrix() functions into display listsBrian Paul2009-09-151-0/+242
| | | | | | | | | | I believe this is the last of the shader-related functions that needed display list treatment.
| * mesa: implement more glUniform display list functionsBrian Paul2009-09-151-1/+365
| |
| * mesa: compile glUniform4f() into display listsBrian Paul2009-09-151-0/+26
| | | | | | | | Note: there are more glUniform functions to compile...
| * mesa: compile glUseProgram/glUseProgramObjectARB into display listsBrian Paul2009-09-151-0/+28
| | | | | | | | Fixes bug 23746
* | Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul2009-09-151-3/+3
|\|
| * mesa: raise GL_INVALID_ENUM not GL_INVALID_VALUE for glTexParamter errorsVinson Lee2009-09-111-3/+3
| | | | | | | | Signed-off-by: Brian Paul <[email protected]>