summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2009-12-30mesa: display list support for glClearBuffer functionsBrian Paul
Note: some code disabled until dispatch table supports GL3 entrypoints.
2009-12-30mesa: implement GL3 glClearBuffer() functionsBrian Paul
These functions clear color/depth/stencil buffers with a value that's passed to the function, rather than the context clear values. For now these functions are implemented in terms of the existing ctx->Driver.Clear() hook. In the future when we have non-normalized integer and unsigned integer color buffer formats we'll need new driver hook(s) to pass int and uint clear values to the driver. Note: these functions are not hooked into the dispatch table at this time.
2009-12-29mesa: fix-up blend enable/disable code in _mesa_PopAttrib()Brian Paul
2009-12-29mesa: finish-up indexed color mask code in _mesa_PopAttrib()Brian Paul
2009-12-29mesa: plug in GL_EXT_draw_buffers2 functionsBrian Paul
2009-12-29mesa: regenerate API files related to GL_EXT_draw_buffers2Brian Paul
2009-12-29mesa: added infrastructure for GL_EXT_draw_buffers2Brian Paul
2009-12-29mesa: add dlist support for indexed colormask and indexed enables/disablesBrian Paul
Not plugged into dispatch table yet...
2009-12-29mesa: implement per-buffer color maskingBrian Paul
This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
2009-12-29mesa: implement indexed glGet functionsBrian Paul
The functions are _mesa_GetBooleanIndexedv(), _mesa_GetIntegerIndexedv(), and _mesa_GetInteger64Indexedv(). These will be called from API functions such as glGetBooleanIndexedvEXT() and glGetBooleani_v(). Only the GL_BLEND query is supported at this time.
2009-12-29mesa: per-buffer blend enabled flagsBrian Paul
ctx->Color.BlendEnabled is now a GLbitfield instead of a GLboolean to indicate blend on/off status for each color/draw buffer. This is infrastructure for GL_EXT_draw_buffers2 and OpenGL 3.x New functions include _mesa_EnableIndexed(), _mesa_DisableIndexed(), and _mesa_IsEnabledIndexed(). The enable function corresponds to glEnableIndexedEXT() for GL_EXT_draw_buffers2 or glEnablei() for GL3. Note that there's quite a few tests for ctx->Color.BlendEnabled != 0 in drivers, etc. Those tests can remain as-is since the mask will be 0 or ~0 unless GL_EXT_draw_buffers2 is enabled.
2009-12-29mesa: Initialize variable in get_tex_color_index.Vinson Lee
2009-12-22mesa: remove unnecessary store.Eric Anholt
2009-12-22mesa: Remove an unnecessary store reported by clang.Eric Anholt
This was a workaround for a compiler warning that was showing a real error. The real error was later fixed.
2009-12-22mesa: Replace CLAMP_SELF() macro with more obvious CLAMP() usage.Eric Anholt
The same code is generated, and readers and static analyzers are happier.
2009-12-22mesa: Remove _mesa_exit wrapper for exit().Eric Anholt
It does nothing else while being less useful than exit() because it lacks attributes that real exit() has.
2009-12-21mesa: set version string to 7.7Ian Romanick
2009-12-21Merge branch 'mesa_7_7_branch'Brian Paul
Conflicts: src/mesa/main/version.h src/mesa/state_tracker/st_atom_shader.c
2009-12-21Merge branch 'mesa_7_6_branch' into mesa_7_7_branchBrian Paul
Conflicts: configure.ac progs/demos/morph3d.c progs/demos/textures.c progs/glsl/shtest.c progs/glsl/texaaline.c progs/tests/packedpixels.c progs/xdemos/corender.c src/mesa/main/version.h
2009-12-16mesa: set version string to 7.6.1-rc4Ian Romanick
2009-12-16mesa: add missing semicolonBrian Paul
See bug 25663.
2009-12-16mesa: test for __blrts for CPU_TO_LE32()Brian Paul
See bug 25663.
2009-12-16mesa: no dlopen on BlueGeneBrian Paul
See bug 25663.
2009-12-11mesa: minor reformatting/rewrapping in dd.hBrian Paul
2009-12-11mesa: remove unused ctx->Driver.ActiveTexture() hookBrian Paul
2009-12-11mesa: updated commentBrian Paul
2009-12-11Merge branch 'mesa_7_7_branch'Brian Paul
Conflicts: src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/drivers/dri/intel/intel_span.c
2009-12-11Merge branch 'mesa_7_6_branch' into mesa_7_7_branchBrian Paul
2009-12-10mesa: Fix array out-of-bounds access by _mesa_TexParameteriv.Vinson Lee
2009-12-10mesa: Fix default (swrast) GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS.Eric Anholt
The swrast pipeline shouldn't have any problem with all the frag and vert textures being bound at the same time. Note that this may result in DRI drivers that don't set this limit having an improbable return (fragment + vertex < combined), but it seems like it shouldn't cause problems for apps.
2009-12-09mesa: Fix array out-of-bounds access by _mesa_TexGend.Vinson Lee
_mesa_TexGend calls _mesa_TexGenfv, which uses the params argument as an array.
2009-12-09mesa: Fix array out-of-bounds access by _mesa_Lighti.Vinson Lee
_mesa_Lighti calls _mesa_Lightiv, which uses the params argument as an array.
2009-12-09mesa: Fix array out-of-bounds access by _mesa_Lightf.Vinson Lee
2009-12-09mesa: Fix array out-of-bounds access by _mesa_PointParameteri.Vinson Lee
_mesa_PointParameteri calls _mesa_PointParameterfv, which uses the params argument as an array.
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)