summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-06-02util: Unsaved change missing from last commit.José Fonseca
2009-06-02util: Support Z24S8/Z24X8 -> unsigned conversion.José Fonseca
2009-06-02util: Fix 24 to 32 bit expansion binary arithmetic expression.José Fonseca
When approaching y = x * 0xffffffff / 0xffffff with bit arithmetic, the 8 least significant bits of y should come from the 8 most significant bits of x.
2009-06-02mesa: release VBO and PBO references upon context destructionBrian Paul
2009-06-02mesa: add #define FEATURE_ARB_pixel_buffer_objectBrian Paul
2009-06-02intel: Clip to window after calling Driver.TexImage2DIan Romanick
This prevents the width / height from being clipped to the window size before the texture is allocated. This matches intelCopyTexImage1D. This should fix bug #21227 Signed-off-by: Ian Romanick <ian.romanick@intel.com> (cherry picked from commit 129f311673c99eb912d659023e50bc5f0ef53249)
2009-06-01gallium/draw: Free specialized versions of driver shadersKeith Whitwell
The pstipple, aaline and aapoint code would create specialized versions of shaders and upload them to the driver -- but never free them.
2009-06-01draw: free more token arraysKeith Whitwell
The AA line and point code also needs to free token arrays after building driver shaders.
2009-06-01draw: avoid leaking tokens when building pstipple fragment shaderKeith Whitwell
Add missing FREE() after MALLOC().
2009-06-01mesa/st: restore flush to copy_texsubimage (was previously finish)Keith Whitwell
Need a flush here even though the original finish was overkill.
2009-06-01wgl: Destroy the framebuffer when the window is destroyed.José Fonseca
2009-06-01st/gl: Fix mip gen for compressed texturesJakob Bornecrantz
2009-06-01st/mesa: fix incorrect sprite origin when drawing to FBO/textureBrian Paul
Need to take the draw buffer's up/down orientation into consideration when setting the sprite_coord_mode field. Fixes inverted sprites when drawing into an FBO.
2009-06-01draw: reset extra_vp_outputs.slot to zero in widepoint_flush()Brian Paul
Fixes a crash when clearing the window with a quad after drawing large points. We were asking the draw module how many vertex shader outputs there were and got 3 instead of 2. This led to creating vertices with too many attributes and trying to read invalid memory. We reset extra_vp_outputs.slot to zero in the aaline/aapoint stage's flush functions already. This omission was just an oversight in the wide_point stage.
2009-05-31wgl: Cleanup framebuffer destruction logic.José Fonseca
2009-05-31wgl: Ensure we only create framebuffers for HDC associated with a window.José Fonseca
2009-05-30wgl: Use the right pixel format.José Fonseca
There is no current pixel format. Each HDC has its pixelformat which is kept by gdi and set/get via the SetPixelFormat/GetPixelFormat functions. Now the HDC's pixelformat is kept in the stw_framebuffer, which is created during the SetPixelFormat.
2009-05-30wgl: Fix debugging output.José Fonseca
2009-05-30wgl: Rename function.José Fonseca
2009-05-30wgl: Remove unused field.José Fonseca
2009-05-30mesa: Output warnings to debugger on Windows.José Fonseca
Stderr of Windows applications without console is not usually visible.
2009-05-30mesa: Check/propagate return value on st_make_current.José Fonseca
Prevents segmentation fault when trying to set the viewport/scissor after a context/drawable visual mismatch.
2009-05-30mesa: Add success/failures return value to _mesa_make_current.José Fonseca
2009-05-30softpipe: fix incorrect provoking vertex color for PIPE_PRIM_POLYGONBrian Paul
This fixes the incorrect colors seen when rendering flat-shaded polygons. Note that clipped polygons were correct, but unclipped polygons were wrong. See the glean/clipFlat test for regression testing.
2009-05-22mesa: fix loop over generic attribs in update_arrays()Brian Paul
2009-05-22vbo: fix crash in vbo_exec_bind_arrays()Brian Paul
When a vertex shader uses generic vertex attribute 0, but not gl_Vertex, we need to set attribute[16] to point to attribute[0]. We were setting the attribute size, but not the pointer. Fixes crash in glsl/multitex.c when using the VertCoord attribute instead of gl_Vertex.
2009-05-22mesa: allow GL_BITMAP type in _mesa_image_image_stride()Brian Paul
It's possible to hand a GL_COLOR_INDEX/GL_BITMAP image to glTexImage3D() which gets converted to RGBA via the glPixelMap tables. This fixes a failure with piglit/fdo10370 with Gallium.
2009-05-22mesa: added commentBrian Paul
2009-05-21mesa: add missing glGet*() case for GL_VERTEX_ARRAY_BINDING_APPLEBrian Paul
2009-05-21vbo: fix incorrect loop limit in bind_array_obj()Brian Paul
The generic_array[] is 16 elements in size, but the loop was doing 32 iterations. The out of bounds array write was clobbering the following inputs[] array but as luck would have it, that didn't matter.
2009-05-21mesa: use MAX_ values instead of literalsBrian Paul
2009-05-19mesa: allow depth/stencil textures to be attached to GL_STENCIL_ATTACHMENTMathias Fröhlich
See sourceforge bug #2793846.
2009-05-19mesa: assign trb->Base.StencilBits in update_wrapper().Brian Paul
When we render to a depth/stencil texture there are stencil bits.
2009-05-18st/mesa: fix incorrect src/dst stride params to _mesa_generate_mipmap_level()Brian Paul
The stride needs to be in texels, not bytes.
2009-05-18mesa: comments for _mesa_generate_mipmap_level()Brian Paul
2009-05-18softpipe: add texture target sanity check assertionBrian Paul
2009-05-18st: fix incorrect target parameter to screen->is_format_supported()Brian Paul
We were passing a GL texture target instead of a pipe_texture_target enum.
2009-05-18Initialize psp->waitX/waitGL for swrast_dri.so.Aidan Thornton
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21053 .
2009-05-15mesa: bump version to 7.5-rc2Brian Paul
2009-05-14r300: Make sure to drop current hardware state reference to texture objects.Michel Dänzer
Fixes potential texture object leaks.
2009-05-13intel: added null ptr checkBrian Paul
Fixes segfault in context tear-down when glClear was never called.
2009-05-13intel: create a private gl_array_object for intel_clear_tris(), fix bug 21638Brian Paul
gl_array_object encapsulates a set of vertex arrays (see the GL_APPLE_vertex_array_object extension). Create a private gl_array_object for drawing the quad for intel_clear_tris() so we don't have to worry about the user's vertex array state. This fixes the no-op glClear bug #21638 and removes the need to call _mesa_PushClientAttrib() and _mesa_PopClientAttrib().
2009-05-13mesa: delete array objects before buffer objects during context tear-downBrian Paul
The former may point to the later.
2009-05-13mesa: clean-up vertex array object VBO unbinding and delete/refcountingBrian Paul
Don't really delete vertex array objects until the refcount hits zero. At that time, unbind any pointers to VBOs. (cherry picked from commit 32b851c80792623195069d7a41a5808cff3b2f6f)
2009-05-13mesa: reference counting for gl_array_objectBrian Paul
Every kind of object that can be shared by multiple contexts should be refcounted. (cherry picked from commit 1030bf0ded2a88a5e27f7a4d393c11cfde3d3c5a)
2009-05-12glXChooseVisual: Only consider fbconfig if we can get the corresponding visual.Michel Dänzer
This can fail, e.g. when XLIB_SKIP_ARGB_VISUALS=1 is set. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524794 and http://bugs.freedesktop.org/show_bug.cgi?id=21600 .
2009-05-11Test either GL_FRONT_LEFT or GL_FRONT for front-buffer renderingIan Romanick
For non-stereo visuals, which is all we support, we treat GL_FRONT_LEFT as GL_FRONT. However, they are technically different, and they have different enum values. Test for either one to determine if we're in front-buffer rendering mode. This fix was suggested by Pierre Willenbrock. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 2085cf24628be7cd297ab0f9ef5ce02bd5a006e2)
2009-05-11st: do proper refcounting for framebuffer surfacesBrian Paul
2009-05-11mesa: Fixed a texture memory leakBrian Paul
The current texture for any particular texture unit is given an additional reference in update_texture_state(); but if the context is closed before that texture can be released (which is quite frequent in normal use, unless a program unbinds and deletes the texture and renders without it to force a call to update_texture_state(), the memory is lost. This affects general Mesa; but the i965 is particularly affected because it allocates a considerable amount of additional memory for each allocated texture. (cherry picked from master, commit c230767d6956b63a2b101acb48f98823bb5dd31a)
2009-05-09gallium: replace lib with $(LIB_DIR)Hanno Böck