summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2007-03-26merge of glsl-compiler-1 branchBrian
2007-03-25Fix some renderbuffer reference counting issues. Also fixes a mem leak.Brian
2007-03-25Color3iv: set the alpha value to 1.0Xiang, Haihao
2007-03-24Free shader-related context state: _mesa_free_shader_state()Brian
2007-03-23Implement alpha buffer copy for SwapBuffers().Brian
Nicolai writes: When the pixmap pixel format has no alpha channel, the x11 driver (software rendering) adds a wrapped alpha channel on request. During SwapBuffers, this alpha channel is not copied from back to front, which means that the front buffer doesn't really contain the contents that the back buffer previously contained. A subsequent glReadPixels from the front buffer will return an incorrect result. The following patch attempts to fix this.
2007-03-23Add the ability to generate programs that doesn't use condition codes.Brian
ctx->Shader.EmitCondCodes determines if we use condition codes. If not, IF statement uses first operand's X component as the condition. Added OPCODE_BRK0, OPCODE_BRK1, OPCODE_CONT0, OPCODE_CONT1 to handle the common cases of conditional break/continue.
2007-03-22use _mesa_copy_instructions()Brian
2007-03-22Ensure we have a valid ReadBuffer for CopyTexSubImage, andAlan Hourihane
if not bail accordingly. Previously we'd only do this test on compressed textures.
2007-03-21merge from masterBrian
2007-03-21mesa: revert f9f79c8d770e696249bd98c68b563f887562c974Xiang, Haihao
to fix #10232 Table6.1(in gl2.1) has been applied for glGetTexImage before calling into _mesa_pack_rgba_span_float.
2007-03-18mesa: SWAP_BUFF support when calling DrawPixels(DEPTH_COMPONENT)Xiang, Haihao
or TexImage(DEPTH_COMPONENT)
2007-03-18mesa: enhance fxt1_quantize_ALPHA1Xiang, Haihao
If possible, let minCol != maxCol
2007-03-17fix some format conversion bugs in glGetTexImage(), bug 10288Haihao Xiang
2007-03-16Assorted fixes for dealing with zero-size frame/renderbuffers.Brian
In xmesa_check_and_update_buffer_size() handle xmctx==NULL correctly: still call _mesa_resize_framebufer(). If we don't we can wind up in a situation where the framebuffer size is non-zero but an attached renderbuffer size is still initialized to zero. This inconsistancy can later cause problems. Check for zero-size renderbuffers in update_color_draw_buffers() and update_color_read_buffer(). See bug 7205.
2007-03-16Colortable re-org.Brian
The pixel transfer path has three color table lookups. Use an array [3] to store that info, rather than separate variables.
2007-03-16added a renderbuffer commentBrian
2007-03-15silently ignore DeleteProgram/Shader(id=0)Brian
2007-03-15in _mesa_GetColorTable, return silently if table size is 0Brian
2007-03-15no-op clear if buffer width or height is zero (bug 7205)Brian
2007-03-15implement byteswapping for all multi-byte types in ↵Brian
_mesa_pack_rgba_span_float(), bug 10298
2007-03-14pixelmap code simplificationBrian
2007-03-14Re-org of gl_pixel_attrib struct.Brian
Reorder fields according to the order in which the pixel transfer operations take place. Improve comments. Move the pixel maps out of gl_pixel_attrib since they're not supposed to be pushed/popped by glPush/PopAttrib. New gl_pixelmap and gl_pixelmaps structs to contain the pixelmaps.
2007-03-13fix ctx->Pixel.PostConvolutionScale/Bias subscript bugsBrian
2007-03-13alloc an extra byte in _mesa_ShaderSourceARB() to silence a valgrind warningBrian
2007-03-13properly compute ctx->Texture._EnabledCoordUnitsBrian
2007-03-13mesa: _mesa_unpack_imageXiang, Haihao
1. take packed pixel data as a component 2. fix for GL_BITMAP when compiling glTexImage, etc into a display list: a. flip byte if lsbFirst is true since DefaultPacking->lsbFirst is false. b. handle SkipPixels
2007-03-12clean-up, simplify _mesa_image_row_stride()Brian
2007-03-12take GL_UNPACK_ALIGNMENT into account in _mesa_image_row_stride() for ↵Brian
GL_BITMAP type (bug 10261)
2007-03-11Implement support for GL_ARB_draw_buffers with GL_MAX_DRAW_BUFFERS > 1.Brian
GL_MAX_DRAW_BUFFERS is currently 4. Added gl_FragData[] output for fragment programs. In _swrast_write_rgba_span() loop over the color outputs/renderbuffers.
2007-03-10Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa ↵Brian
into glsl-compiler-1
2007-03-10check for EXT_blend_equation_separate for 2.0Brian
2007-03-09added GL_CURRENT_PROGRAMBrian
2007-03-09Merge branch 'origin' into glsl-compiler-1Brian
Conflicts: src/mesa/main/context.c
2007-03-09New IMAGE_RED_TO_LUMINANCE flag passed to _mesa_pack_rgba_span_float() to ↵Brian
fix glGetTexImage(GL_LUMINANCE) bug #10232.
2007-03-08 remove a if-statementXiang, Haihao
glMaterial changes the current specular exponent or glLight changes the intensity distribution of the light, but _mesa_update_state doesn't update the corresponding light table. So they must be updated at this time.
2007-03-07use 2.0, 2.1 version stringsBrian
2007-03-06Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesaBrian
2007-03-06explicit calls to _mesa_unreference_framebuffer() not always needed nowBrian
2007-03-06unreference old framebuffer, if needed, in _mesa_reference_framebuffer()Brian
2007-03-06Merge branch 'master' of ssh+git://idr@git.freedesktop.org/git/mesa/mesaIan Romanick
2007-03-06Fix cut-and-paste error in the name of GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB.Ian Romanick
2007-03-06Fix/improve framebuffer object reference counting.Brian
Use _mesa_reference_framebuffer() and _mesa_unreference_framebuffer() functions to be sure reference counting is done correctly. Additional assertions are done too. Note _mesa_dereference_framebuffer() renamed to "unreference" as that's more accurate.
2007-03-06Take care of texObj reference in _mesa_free_framebuffer_data()Brian
2007-03-01move oldFb decl into tighter scopesBrian
2007-03-01fix bad n_dot_h normalization code (bug 9977), plus clean-up the code in generalBrian
2007-02-27assert that fb->RefCount==0 in _mesa_free_framebuffer_data()Brian
2007-02-27s/matrix_stack/gl_matrix_stack/ and s/mesa_list_state/gl_dlist_state/Brian
2007-02-26remove unused DriverMgrCtxBrian
2007-02-26Add EmitHighLevelInstructions, EmitComments booleans to gl_shader_state.Brian
These control code generation options. May be overridden by drivers, debuggers, etc.
2007-02-26fix mem leak in _mesa_ShaderSourceARB()Brian