aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* check for EXT_blend_equation_separate for 2.0Brian2007-03-101-1/+2
|
* 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.
* fd.o #BZ 9684Zou Nan hai2007-02-121-1/+2
| | | | | gcc may cast an overflowed float value to an negative int value on i386, fix it to make sure at least some apps will not crash if it contains wrong normal data.
* ctx->Point._Size fixRune Peterson2007-02-103-26/+7
|
* optimize generated vertex programs a bitRoland Scheidegger2007-02-091-0/+8
| | | | | | | | Use new internal state to avoid per-vertex normalization of static spot direction vector. Use internal state for simpler per-vertex fog computations (MAD instead of SUB/MUL for linear fog, EX2 instead of POW for EXP/EXP2 fog). Simplify point size calc (2 MADs instead of MOV, MUL, MUL, DP3), and while there fix it up (RSQ instead of RCP). All untested...
* fix mem leakPanagiotis Papadakos2007-02-051-0/+3
|
* Add _NEW_PROGRAM flag to _MESA_NEW_NEED_EYE_COORDS.Brian2007-02-031-0/+1
| | | | | This fixes a segfault in the texgen code that can occur after we've disabled a vertex program.
* Merge branch 'vbo-0.2'Keith Whitwell2007-02-0211-123/+69
|\ | | | | | | | | | | | | Conflicts: src/mesa/main/texcompress_s3tc.c src/mesa/tnl/t_array_api.c
| * Don't special-case index, edgeflag.Keith Whitwell2007-01-161-46/+3
| | | | | | | | | | | | Remove display list opcodes for INDEX and EDGEFLAG, handle them through the regular ATTRIB mechanism now that Mesa understands them to just be regular attribs.
| * Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Keith Whitwell2007-01-1634-3261/+3586
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into vbo-0.2 Conflicts: src/mesa/array_cache/sources src/mesa/drivers/dri/i965/brw_context.c src/mesa/drivers/dri/i965/brw_draw.c src/mesa/drivers/dri/i965/brw_fallback.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/i965/brw_vs_tnl.c src/mesa/drivers/dri/mach64/mach64_context.c src/mesa/main/extensions.c src/mesa/main/getstring.c src/mesa/tnl/sources src/mesa/tnl/t_save_api.c src/mesa/tnl/t_save_playback.c src/mesa/tnl/t_vtx_api.c src/mesa/tnl/t_vtx_exec.c src/mesa/vbo/vbo_attrib.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_api.c src/mesa/vbo/vbo_save_draw.c
| * | Don't special-case FOG attribute initialization.Keith Whitwell2007-01-151-1/+0
| | | | | | | | | | | | | | | Initial fog value was being set to {0,0,0,0}. This results in vector size 4, but isn't necessary. The regular {0,0,0,1} works fine.
| * | merge current trunk into vbo branchAlan Hourihane2006-11-0221-651/+950
| | |
| * | oops, get.c is autogeneratedKeith Whitwell2006-10-302-4/+4
| | |
| * | Move edgeflag into the VERT_ATTRIB_SEVEN slot. This means that ourKeith Whitwell2006-10-305-13/+13
| | | | | | | | | | | | | | | | | | | | | NV_vertex_program implementation has slightly incorrect aliasing behaviour. I think this is reasonable given the simplification and the fact that the mainstream ARB_vp continues to have the correct behaviour.
| * | better handling of current attributes. Trivial dlist and varray tests workKeith Whitwell2006-10-303-17/+4
| | |
| * | Fix compiler warningKeith Whitwell2006-10-291-1/+1
| | |
* | | _mesa_pack_rgba_span_float: fix for packing data into groupXiang, Haihao2007-01-311-3/+5
| | |
* | | bump version to 6.5.3Brian2007-01-301-7/+7
| | |
* | | Bug 9628: no entry for GetVertexAttribPointervGeorge Sapountzis2007-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is because (in glX_API.xml) GetVertexAttribPointerv is aliased to GetVertexAttribPointervARB which is then aliased to GetVertexAttribPointervNV. Make GetVertexAttribPointerv alias GetVertexAttribPointervNV directly. Patch by Ian Romanick <[email protected]> and regenerate.
* | | fix typoBrian2007-01-261-1/+1
| | |
* | | document, re-indent _mesa_ffsll()Brian2007-01-261-10/+18
| | |
* | | Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesaBrian2007-01-263-24/+28
|\ \ \
| * | | Add _mesa_ffsll() for compatibility on OSes without ffsll(), and use it.Eric Anholt2007-01-262-0/+24
| | | |
| * | | Override Const.CheckArrayBounds for Xserver in XMesaCreateContext().George Sapountzis2007-01-261-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This leaves one last XFree86Server ifdef in Mesa core. --- Bug 9285: misc glcore, xmesa cleanups ACKed by Ian Romanick.
| * | | Drop old (pre-AIGLX) GLcore interface.George Sapountzis2007-01-262-17/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old GLcore interface was replaced in Xorg 7.1 with the addition of AIGLX, it is only used by DDX's which are known not to work with the new DIX glx code. --- Bug 9285: misc glcore, xmesa cleanups ACKed by Ian Romanick.