summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* Free shader-related context state: _mesa_free_shader_state()Brian2007-03-241-0/+1
|
* Add the ability to generate programs that doesn't use condition codes.Brian2007-03-231-2/+4
| | | | | | | 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.
* merge from masterBrian2007-03-2113-801/+705
|\
| * mesa: revert f9f79c8d770e696249bd98c68b563f887562c974Xiang, Haihao2007-03-213-16/+6
| | | | | | | | | | | | | | to fix #10232 Table6.1(in gl2.1) has been applied for glGetTexImage before calling into _mesa_pack_rgba_span_float.
| * mesa: SWAP_BUFF support when calling DrawPixels(DEPTH_COMPONENT)Xiang, Haihao2007-03-181-53/+45
| | | | | | | | or TexImage(DEPTH_COMPONENT)
| * mesa: enhance fxt1_quantize_ALPHA1Xiang, Haihao2007-03-181-33/+44
| | | | | | | | If possible, let minCol != maxCol
| * fix some format conversion bugs in glGetTexImage(), bug 10288Haihao Xiang2007-03-171-0/+19
| |
| * Assorted fixes for dealing with zero-size frame/renderbuffers.Brian2007-03-162-13/+20
| | | | | | | | | | | | | | | | | | | | 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.
| * Colortable re-org.Brian2007-03-168-268/+170
| | | | | | | | | | The pixel transfer path has three color table lookups. Use an array [3] to store that info, rather than separate variables.
| * added a renderbuffer commentBrian2007-03-161-1/+1
| |
| * no-op clear if buffer width or height is zero (bug 7205)Brian2007-03-151-0/+3
| |
| * implement byteswapping for all multi-byte types in ↵Brian2007-03-151-20/+17
| | | | | | | | _mesa_pack_rgba_span_float(), bug 10298
| * pixelmap code simplificationBrian2007-03-141-253/+124
| |
| * Re-org of gl_pixel_attrib struct.Brian2007-03-145-203/+228
| | | | | | | | | | | | | | | | 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.
| * mesa: _mesa_unpack_imageXiang, Haihao2007-03-131-3/+89
| | | | | | | | | | | | | | 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
| * clean-up, simplify _mesa_image_row_stride()Brian2007-03-121-23/+19
| |
| * take GL_UNPACK_ALIGNMENT into account in _mesa_image_row_stride() for ↵Brian2007-03-121-1/+6
| | | | | | | | GL_BITMAP type (bug 10261)
* | silently ignore DeleteProgram/Shader(id=0)Brian2007-03-151-13/+19
| |
* | in _mesa_GetColorTable, return silently if table size is 0Brian2007-03-151-2/+6
| |
* | fix ctx->Pixel.PostConvolutionScale/Bias subscript bugsBrian2007-03-131-6/+6
| |
* | alloc an extra byte in _mesa_ShaderSourceARB() to silence a valgrind warningBrian2007-03-131-4/+9
| |
* | properly compute ctx->Texture._EnabledCoordUnitsBrian2007-03-131-12/+8
| |
* | Implement support for GL_ARB_draw_buffers with GL_MAX_DRAW_BUFFERS > 1.Brian2007-03-112-2/+3
| | | | | | | | | | | | 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.
* | Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Brian2007-03-101-1/+2
|\| | | | | | | into glsl-compiler-1
| * check for EXT_blend_equation_separate for 2.0Brian2007-03-101-1/+2
| |
* | added GL_CURRENT_PROGRAMBrian2007-03-092-1/+20
| |
* | Merge branch 'origin' into glsl-compiler-1Brian2007-03-0912-123/+171
|\| | | | | | | | | | | Conflicts: src/mesa/main/context.c
| * New IMAGE_RED_TO_LUMINANCE flag passed to _mesa_pack_rgba_span_float() to ↵Brian2007-03-093-6/+16
| | | | | | | | fix glGetTexImage(GL_LUMINANCE) bug #10232.
| * remove a if-statementXiang, Haihao2007-03-081-2/+1
| | | | | | | | | | | | 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.
| * Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesaBrian2007-03-061-2/+2
| |\
| | * Merge branch 'master' of ssh+git://[email protected]/git/mesa/mesaIan Romanick2007-03-069-111/+149
| | |\
| | * | Fix cut-and-paste error in the name of GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB.Ian Romanick2007-03-061-2/+2
| | | |
| * | | explicit calls to _mesa_unreference_framebuffer() not always needed nowBrian2007-03-061-2/+0
| | | |
| * | | unreference old framebuffer, if needed, in _mesa_reference_framebuffer()Brian2007-03-061-0/+7
| | |/ | |/|
| * | Fix/improve framebuffer object reference counting.Brian2007-03-067-64/+76
| | | | | | | | | | | | | | | | | | | | | 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.
| * | Take care of texObj reference in _mesa_free_framebuffer_data()Brian2007-03-061-6/+11
| | |
| * | move oldFb decl into tighter scopesBrian2007-03-011-3/+3
| | |
| * | fix bad n_dot_h normalization code (bug 9977), plus clean-up the code in generalBrian2007-03-011-33/+31
| | |
| * | assert that fb->RefCount==0 in _mesa_free_framebuffer_data()Brian2007-02-271-0/+1
| | |
| * | Do proper framebuffer refcounting in _mesa_make_current().Brian2007-02-263-16/+38
| |/ | | | | | | | | | | Also, added DeletePending field to gl_framebuffer used when a window has been deleted, but there still may be rendering contexts attached to the gl_framebuffer object.
* | use 2.0, 2.1 version stringsBrian2007-03-071-2/+2
| |
* | s/matrix_stack/gl_matrix_stack/ and s/mesa_list_state/gl_dlist_state/Brian2007-02-272-15/+15
| |
* | remove unused DriverMgrCtxBrian2007-02-261-1/+0
| |
* | Add EmitHighLevelInstructions, EmitComments booleans to gl_shader_state.Brian2007-02-261-0/+2
| | | | | | | | These control code generation options. May be overridden by drivers, debuggers, etc.
* | fix mem leak in _mesa_ShaderSourceARB()Brian2007-02-261-0/+2
| |
* | define and use MAX_PROGRAM_ADDRESS_REGSBrian2007-02-251-0/+1
| |
* | s/GetFragmentProgramRegister/GetProgramRegister/Brian2007-02-251-3/+3
| |
* | Undo some changes to _mesa_UpdateTexEnvProgram(). Fixes broken i915 texturing.Brian2007-02-241-3/+9
| |
* | Remove unneeded _Fragment/VertexShaderPresent fields, update comments.Brian2007-02-241-7/+9
| |
* | s/GLint/gl_state_index/, length is now 5 not 6Brian2007-02-231-9/+7
| |