summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* mesa: add missing update_min() call in update_arrays()Brian Paul2009-05-221-1/+1
|
* mesa: reduce gl_array_object::VertexAttrib[] array from 32 to 16 elementsBrian Paul2009-05-221-2/+7
| | | | | | | | | | This array was mistakenly dimensioned with VERT_ATTRIB_MAX (32) but it should really be MAX_VERTEX_GENERIC_ATTRIBS (16). The generic vertex attributes are in addition to the conventional arrays (except in NV vertex program mode- they alias/overlay in that case) so the total of all conventional attributes plus generic attributes should total 32 (not 48).
* mesa: use Elements() for loop limitBrian Paul2009-05-221-1/+1
|
* mesa: use Elements() for loop limitBrian Paul2009-05-221-2/+2
|
* mesa: use Elements() for loop limitBrian Paul2009-05-221-1/+1
|
* mesa: simplify adjust_buffer_object_ref_counts()Brian Paul2009-05-221-12/+14
|
* mesa: minor code clean-upBrian Paul2009-05-221-18/+19
|
* mesa: use Elements() for loop limitBrian Paul2009-05-222-4/+4
|
* mesa: use Elements() for loop boundBrian Paul2009-05-221-2/+2
|
* mesa: minor code simplificationBrian Paul2009-05-221-9/+11
|
* Merge branch 'mesa_7_5_branch'Brian Paul2009-05-221-2/+2
|\
| * mesa: fix loop over generic attribs in update_arrays()Brian Paul2009-05-221-1/+1
| |
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-05-223-14/+40
|\ \ | |/
| * mesa: allow GL_BITMAP type in _mesa_image_image_stride()Brian Paul2009-05-221-13/+23
| | | | | | | | | | | | | | 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.
| * mesa: added commentBrian Paul2009-05-221-0/+1
| |
| * mesa: add missing glGet*() case for GL_VERTEX_ARRAY_BINDING_APPLEBrian Paul2009-05-212-1/+16
| |
* | mesa: added some assertionsBrian Paul2009-05-221-0/+2
| |
* | mesa: use Elements() macro to limit loops instead of constantsBrian Paul2009-05-221-5/+5
| |
* | mesa: remove MAX_VERTEX_PROGRAM_ATTRIBSBrian Paul2009-05-222-5/+4
| | | | | | | | | | Use MAX_VERTEX_GENERIC_ATTRIBS instead. No need for two #defines for the same quantity.
* | mesa: rename MAX_VERTEX_ATTRIBS to MAX_VERTEX_GENERIC_ATTRIBSBrian Paul2009-05-224-26/+26
| | | | | | | | | | Be clearer that this is the number of generic vertex program/shader attributes, not counting the legacy attributes (pos, normal, color, etc).
* | mesa: s/MAX_VERTEX_PROGRAM_ATTRIBS/MAX_NV_VERTEX_PROGRAM_INPUTS/ in NV funcsBrian Paul2009-05-221-8/+8
| |
* | mesa: s/MAX_VERTEX_PROGRAM_ATTRIBS/MAX_NV_VERTEX_PROGRAM_INPUTSBrian Paul2009-05-211-1/+1
| |
* | mesa: freshen comments for update_array()Brian Paul2009-05-211-3/+2
| |
* | mesa: remove const qualifierBrian Paul2009-05-211-1/+1
| |
* | mesa: VertexAttribPointer commentsBrian Paul2009-05-211-0/+11
| |
* | mesa: call _mesa_update_array_object_max_element() before printing array infoBrian Paul2009-05-211-0/+2
| |
* | mesa: added gl_array_object::Weight array fieldBrian Paul2009-05-212-0/+4
| | | | | | | | | | | | | | We don't really implement vertex weights but in the VBO code this fixes and odd case for the legacy_array[] setup. Before, the vbo->draw_prims() call was always indicating that the vertex weight array was present/enabled when it really wasn't.
* | mesa: check FEATURE_point_size_array for PointSize arrayBrian Paul2009-05-211-0/+2
| |
* | mesa: fix some potential state-restore issues in pop_texture_group()Brian Paul2009-05-211-45/+45
| | | | | | | | | | | | Call the _mesa_set_enable() functions instead of driver functions, etc. Also, add missing code for 1D/2D texture arrays.
* | mesa: new _mesa_update_array_object_max_element() functionBrian Paul2009-05-212-2/+83
| | | | | | | | This will replace the code in state.c
* | mesa: added debug functions for dumping color/depth/stencil buffersBrian Paul2009-05-212-0/+110
| |
* | mesa: remove pointless null ptr check, improved some error messagesBrian Paul2009-05-211-3/+3
| |
* | mesa: added _mesa_print_arrays() for debuggingBrian Paul2009-05-212-13/+51
| |
* | mesa: updated comment for _MaxElement fieldBrian Paul2009-05-211-1/+1
| | | | | | | | It's the largest array index, plus one.
* | mesa: move gl_array_attrib::_MaxElement to gl_array_object::_MaxElementBrian Paul2009-05-213-6/+11
| | | | | | | | This value is per array object.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-05-192-4/+15
|\ \ | |/
| * mesa: allow depth/stencil textures to be attached to GL_STENCIL_ATTACHMENTMathias Fröhlich2009-05-191-4/+14
| | | | | | | | See sourceforge bug #2793846.
| * mesa: assign trb->Base.StencilBits in update_wrapper().Brian Paul2009-05-191-0/+1
| | | | | | | | When we render to a depth/stencil texture there are stencil bits.
* | mesa: print more info when valid_texture_object() failsBrian Paul2009-05-191-1/+2
| |
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-05-181-0/+3
|\ \ | |/ | | | | | | | | | | Conflicts: Makefile src/mesa/main/version.h
| * mesa: comments for _mesa_generate_mipmap_level()Brian Paul2009-05-181-0/+3
| |
| * mesa: bump version to 7.5-rc2Brian Paul2009-05-151-1/+1
| |
* | mesa: Mark FBOs with compressed color attachments as FBO-incomplete.Eric Anholt2009-05-151-0/+5
| | | | | | | | | | | | | | | | Both EXT_fbo and ARB_fbo agree on this. Fixes a segfault in the metaops mipmap generation in Intel for SGIS_generate_mipmap of S3TC textures in Regnum Online. Bug #21654.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-05-131-0/+1
|\ \ | |/ | | | | | | | | | | | | Conflicts: src/mesa/main/arrayobj.c src/mesa/main/arrayobj.h src/mesa/main/context.c
| * mesa: delete array objects before buffer objects during context tear-downBrian Paul2009-05-131-1/+2
| | | | | | | | The former may point to the later.
| * mesa: clean-up vertex array object VBO unbinding and delete/refcountingBrian Paul2009-05-131-31/+33
| | | | | | | | | | | | 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)
| * mesa: reference counting for gl_array_objectBrian Paul2009-05-134-13/+84
| | | | | | | | | | | | Every kind of object that can be shared by multiple contexts should be refcounted. (cherry picked from commit 1030bf0ded2a88a5e27f7a4d393c11cfde3d3c5a)
| * mesa: Fixed a texture memory leakBrian Paul2009-05-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * mesa: set version to 7.5-rc1Brian Paul2009-05-081-1/+1
| |
| * mesa: Make _mesa_share_state thread safe.José Fonseca2009-05-081-2/+9
| |