summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2009-12-09mesa: Fix array out-of-bounds access by _mesa_PointParameterf.Vinson Lee
_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the params argument as an array.
2009-12-09mesa: Fix array out-of-bounds access by _mesa_LightModelf.Vinson Lee
_mesa_LightModelf calls _mesa_LightModelfv, which uses the params argument as an array.
2009-12-09mesa: fix baseLevel >= MAX_TEXTURE_LEVELS testBrian Paul
This fixes invalid array indexing when baseLevel == MAX_TEXTURE_LEVELS. See bug 25528.
2009-12-09mesa: Move OES_read_format support from drivers into the core.Eric Anholt
The assertion is that the correct read type to be using is the native type of the underlying read renderbuffer. For some fallback paths, this may be worse than GL_RGBA/GL_UNSIGNED_BYTE for reads today, but it gets all drivers the expected GL_BGRA/GL_UNSIGNED_BYTE for ARGB8888 or GL_BGR//GL_UNSIGNED_SHORT_5_6_5_REV for rgb565 with no work. This fixes the intel (and other) DRI drivers to report read formats that should hit blit PBO readpixels paths.
2009-12-08mesa: Fix array out-of-bounds access by _mesa_LightModeli.Vinson Lee
_mesa_LightModeli calls _mesa_LightModeliv, which uses the params argument as an array.
2009-12-08mesa: Fix array out-of-bounds access by _mesa_Fogf.Vinson Lee
_mesa_Fogf calls _mesa_Fogfv, which uses the params argument as an array.
2009-12-08mesa: Fix array out-of-bounds access by _mesa_TexParameteri.Vinson Lee
_mesa_TexParameteri calls set_tex_parameteri, which uses the params argument as an array.
2009-12-08mesa: Fix array out-of-bounds access by _mesa_Fogi.Vinson Lee
_mesa_Fogi calls _mesa_Fogfv, which uses the params argument as an array.
2009-12-08mesa: Fix array out-of-bounds access by _mesa_TexParameteri.Vinson Lee
_mesa_TexParameteri calls set_tex_parameterf, which uses the params argument as an array.
2009-12-08mesa: Fix array out-of-bounds access by _mesa_TexParameterfv.Vinson Lee
_mesa_TexParameterfv calls set_tex_parameteri, which uses the params argument as an array.
2009-12-08Merge branch 'gallium-strict-aliasing'Roland Scheidegger
2009-12-07mesa: set version string to 7.6.1-rc3Ian Romanick
2009-12-07mesa: fix strict aliasing issues in half-to-float/float-to-half conversionsRoland Scheidegger
use union instead of casts
2009-12-05mesa: Fix array out-of-bounds access by _mesa_TexGenf.Vinson Lee
_mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument as an array. (cherry picked from commit ca5a7aadb4361e7d053aea8687372cd44cbd8795)
2009-12-05mesa: Fix array out-of-bounds access by _mesa_TexGeni.Vinson Lee
_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument as an array. (cherry picked from commit d55fb7c835b56951f05a058083e7eda264ba192e)
2009-12-05mesa: Fix array out-of-bounds access by _mesa_TexParameterf.Vinson Lee
_mesa_TexParameterf calls set_tex_parameterf, which uses the params argument as an array. (cherry picked from commit 270d36da146b899d39e08f830fe34b63833a3731)
2009-12-05mesa: Fix array out-of-bounds access by _mesa_TexParameterf.Vinson Lee
_mesa_TexParameterf calls set_tex_parameteri, which uses the params argument as an array. (cherry picked from commit a201dfb6bf28b89d6f511c2ec9ae0d81ef18511d)
2009-12-04mesa: Fix array out-of-bounds access in _mesa_TexEnvf.Vinson Lee
_mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument as an array. (cherry picked from commit a11d60d14caf8efc07f70af63b57b33273f8cf9b)
2009-12-07mesa: set version string to 7.7-rc1Ian Romanick
Also modify the Makefile to use the correct version for the tarballs.
2009-12-03mesa: use _mesa_memcpy for COPY_4FV macroRoland Scheidegger
Gets rid of one of the worst strict-aliasing offenders, and actually produces faster code (at least in some cases, when compiler can use for instance 64bit moves for memcpy). (note _mesa_memcpy should get inlined)
2009-12-02Merge branch 'mesa_7_7_branch'Jakob Bornecrantz
2009-12-02mesa: Fix bad conversion in AL1616_REV texstore.Eric Anholt
2009-12-02mesa: Fix copy'n'paste problem in al1616 texel fetch.Eric Anholt
2009-12-01mesa: added comment for target_enum_to_index()Brian Paul
2009-12-01Merge commit 'origin/mesa_7_7_branch'Keith Whitwell
Conflicts: src/gallium/drivers/svga/svga_screen_texture.c src/gallium/state_trackers/xorg/xorg_composite.c src/gallium/state_trackers/xorg/xorg_exa.c src/gallium/state_trackers/xorg/xorg_renderer.c src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/main/texgetimage.c src/mesa/main/version.h
2009-12-01mesa: Update vertex texture code after gallium changes.Michal Krol
2009-11-30mesa: set version string to 7.7-rc1Ian Romanick
2009-11-30mesa: set version string to 7.6.1-rc2Ian Romanick
2009-11-30Merge branch 'mesa_7_6_branch' into mesa_7_7_branchIan Romanick
Conflicts: progs/util/shaderutil.c src/mesa/drivers/dri/r600/r600_context.c src/mesa/main/version.h
2009-11-29mesa: Fix array out-of-bounds access by _mesa_TexParameterf.Vinson Lee
_mesa_TexParameterf calls set_tex_parameterf, which uses the params argument as an array.
2009-11-29mesa: Fix array out-of-bounds access by _mesa_TexParameterf.Vinson Lee
_mesa_TexParameterf calls set_tex_parameteri, which uses the params argument as an array.
2009-11-29mesa: Fix array out-of-bounds access by _mesa_TexGenf.Vinson Lee
_mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument as an array.
2009-11-28mesa: Fix array out-of-bounds access by _mesa_TexGeni.Vinson Lee
_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument as an array.
2009-11-28mesa: Fix array out-of-bounds access in _mesa_TexEnvf.Vinson Lee
_mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument as an array.
2009-11-27mesa: Avoid void pointer arithmetic.José Fonseca
2009-11-25Improve implementation of GL_POINT_SPRITE_COORD_ORIGIN errorsIan Romanick
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).
2009-11-24mesa: Fix pointer arithmetic.Michal Krol
2009-11-23mesa: use gcc __builtin_popcount()Brian Paul
2009-11-23Merge commit 'origin/mesa_7_7_branch'Maciej Cencora
2009-11-23mesa: Initialize variable in _mesa_get_texel_fetch_func.Vinson Lee
2009-11-21mesa: handle different RowStride in _mesa_get_compressed_teximageRoland Scheidegger
drivers storing compressed textures with non-native stride but relying on _mesa_get_compressed_teximage for GetCompressedTexImage otherwise won't work correctly (for instance i965 compressed mipmaps).
2009-11-20Merge remote branch 'origin/mesa_7_7_branch'Dave Airlie
2009-11-19mesa: define 32bit byteswap for AIX.Tom Fogal
Fixes `xlib' driver build on AIX. Signed-off-by: Brian Paul <brianp@vmware.com>
2009-11-19mesa: Remove gratuitous padding in prog_dst_register.Eric Anholt
The padding was there to indicate the amount of space left from the number of expected bytes in the struct minus allocated bits. But uint bitfields get packed so that they don't cross uint boundaries, and we ended up allocating an extra dword to hold the pad field!
2009-11-18mesa: set version string to 7.6.1-rc1Brian Paul
2009-11-18mesa: bump version to 7.8Brian Paul
2009-11-17AL1616: Fix cut-and-paste bugIan Romanick
One of the PACK_COLOR_88 cases was left over from copying _mesa_texstore_al88 to _mesa_texstore_al1616.
2009-11-17Merge branch 'outputswritten64'Ian Romanick
Add a GLbitfield64 type and several macros to operate on 64-bit fields. The OutputsWritten field of gl_program is changed to use that type. This results in a fair amount of fallout in drivers that use programs. No changes are strictly necessary at this point as all bits used are below the 32-bit boundary. Fairly soon several bits will be added for clip distances written by a vertex shader. This will cause several bits used for varyings to be pushed above the 32-bit boundary. This will affect any drivers that support GLSL. At this point, only the i965 driver has been modified to support this eventuality. I did this as a "squash" merge. There were several places through the outputswritten64 branch where things were broken. I foresee this causing difficulties later for bisecting. The history is still available in the branch. Conflicts: src/mesa/drivers/dri/i965/brw_wm.h
2009-11-17ARB_fbo: Enable GL_EXT_framebuffer_multisampleIan Romanick
All of this functionality is already included in ARB_fbo. This just enables the string. I was a bit lazy in using FEATURE_ARB_framebuffer_object for this feature as well. I don't think it makes much difference in the long run.
2009-11-17ARB_fbo: Regenerate files from previous commits.Ian Romanick