aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_exec_api.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: merge gallium-0.2 into gallium-master-mergeBrian Paul2009-02-091-24/+62
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'origin/gallium-0.2' into gallium-master-merge Conflicts: Makefile docs/relnotes-7.4.html docs/relnotes.html src/mesa/drivers/dri/i965/brw_wm.h src/mesa/main/imports.c src/mesa/main/mtypes.h src/mesa/main/texcompress.c src/mesa/main/texenvprogram.c src/mesa/main/version.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_draw.c
| * Merge commit 'origin/gallium-0.1' into gallium-0.2Keith Whitwell2008-10-101-18/+26
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/gallivm/instructionssoa.cpp src/gallium/auxiliary/gallivm/soabuiltins.c src/gallium/auxiliary/rtasm/rtasm_x86sse.c src/gallium/auxiliary/rtasm/rtasm_x86sse.h src/mesa/main/texenvprogram.c src/mesa/shader/arbprogparse.c src/mesa/shader/prog_statevars.c src/mesa/state_tracker/st_draw.c src/mesa/vbo/vbo_exec_draw.c
| | * mesa: add new internal state for tracking current vertex attribsKeith Whitwell2008-10-031-18/+26
| | |
| | * mesa: improved gl_buffer_object reference countingBrian Paul2008-09-041-2/+6
| | | | | | | | | | | | | | | Use new _mesa_reference_buffer_object() function wherever possible. Fixes buffer object/display list crash reported in ParaView.
| * | Merge commit 'origin/master' into HEADKeith Whitwell2008-09-261-5/+5
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/vbo/vbo.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_exec_draw.c
| * \ \ Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/mesa into ↵Alan Hourihane2008-09-111-2/+6
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gallium-0.2 Conflicts: src/mesa/drivers/dri/i915/intel_ioctl.c src/mesa/main/texstore.c src/mesa/tnl/t_vp_build.c src/mesa/vbo/vbo_exec_draw.c
| * | | mesa: added GLAPIENTRY keywordsJonathan White2008-07-071-5/+5
| | | |
| * | | mesa: added _vbo_VertexAttrib4f()Brian Paul2008-07-031-0/+7
| | | |
| * | | mesa: added _vbo_Materialfv()Brian Paul2008-06-201-0/+5
| | | |
| * | | mesa: _vbo_Color4f, _vbo_Normal3f, _vbo_MultiTexCoord4f functionsBrian Paul2008-06-201-0/+21
| | | |
| * | | mesa: s/GL_POLYGON+1/PRIM_OUTSIDE_BEGIN_END/Brian Paul2008-06-181-5/+5
| | | |
| * | | mesa: refactor: move #define FEATURE flags into new mfeatures.h fileBrian Paul2008-06-101-0/+4
| | | | | | | | | | | | | | | | Also, check the FEATURE flags in many places.
| * | | mesa: Fix glBegin-time test for invalid programs/shaders.Brian Paul2008-04-111-8/+23
| | | | | | | | | | | | | | | | Cherry-picked from master.
| * | | mesa: revert fast-track glColor and similar calls when not immediate mode ↵Brian2008-03-141-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rendering Revert commit d08cd68d3f5456b69ad504ede2b090c0bb6474db This change caused some glean tests to fail. The alpha value of colors was always 1.0 instead of the value from glColor4fv(). The mesa color array found in st_draw() has size=3 instead of size=4.
| * | | mesa: fast-track glColor and similar calls when not immediate mode renderingKeith Whitwell2008-03-101-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | Often these are mixed in with draw arrays calls, etc. Try not to get the whole immediate rendering state machine going when we receive one of these on their own.
| * | | fix VBO clean-up in vbo_exec_vtx_destroy()Brian2007-08-201-4/+13
| | | |
| * | | added vbo_use_buffer_objects() to specify that immediate mode data should be ↵Brian2007-08-171-0/+35
| | | | | | | | | | | | | | | | put into bufferobjects
* | | | mesa: fix GLSL issue preventing use of all 16 generic vertex attributesBrian Paul2009-02-021-1/+4
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only 15 actually worked before since we always reserved generic[0] as an alias for vertex position. The case of vertex attribute 0 is tricky. The spec says that there is no aliasing between generic vertex attributes 0..MAX_VERTEX_ATTRIBS-1 and the conventional attributes. But it also says that calls to glVertexAttrib(0, v) are equivalent to glVertex(v). The distinction seems to be in glVertex-mode versus vertex array mode. So update the VBO code so that if the shader uses generic[0] but not gl_Vertex, route the attribute data set with glVertex() to go to shader input generic[0]. No change needed for the glDrawArrays/Elements() path. This is a potentially risky change so regressions are possible. All the usual tests seem OK though.
* | | mesa: fix some VBO buffer object issuesBrian Paul2008-09-251-4/+12
| | | | | | | | | | | | | | | | | | The VBO module may use a real VBO or a malloc'd buffer for vertex storage. Be careful not to accidentally replace the later with the former when drawing. Check if using a real VBO at destroy time to prevent a double-free.
* | | added vbo_use_buffer_objects() to specify that immediate mode data should be ↵Brian2008-09-231-0/+35
| | | | | | | | | | | | put into bufferobjects
* | | mesa: s/GL_POLYGON+1/PRIM_OUTSIDE_BEGIN_END/Brian Paul2008-09-231-5/+5
| | | | | | | | | | | | (cherry picked from commit 8a369b909a6648ae7a5a0c2dcb972a2f96f99a80)
* | | mesa: refactor: move #define FEATURE flags into new mfeatures.h fileKeith Whitwell2008-09-211-0/+4
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | Also, check the FEATURE flags in many places. (cherry picked from commit 40d1a40f294f1ed2dacfad6f5498322fc08cc2d1) Conflicts: src/mesa/main/config.h src/mesa/main/context.c src/mesa/main/texobj.c src/mesa/main/texstate.c src/mesa/main/texstore.c
* | mesa: improved gl_buffer_object reference countingBrian Paul2008-09-041-2/+6
| | | | | | | | | | Use new _mesa_reference_buffer_object() function wherever possible. Fixes buffer object/display list crash reported in ParaView.
* | Fix glBegin-time test for invalid programs/shaders.Brian2008-02-201-8/+23
|/
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-10/+10
| | | | of -I flags.
* a variety of fixes for MingWzhang2007-06-281-0/+5
|
* for evaluators, loop to VBO_ATTRIB_TEX7, not VBO_ATTRIB_INDEX. See bug 10543Brian2007-04-061-2/+2
|
* XXX comments about shadersBrian2007-02-221-0/+1
|
* Move edgeflag into the VERT_ATTRIB_SEVEN slot. This means that ourKeith Whitwell2006-10-301-45/+31
| | | | | | | 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.
* Checkpoint of new vbo-building code. Currently builds regular arraysKeith Whitwell2006-10-291-0/+716
rather than VBO's - VBOs are easy but need to look closer at the driver interface. The trivial/tri demo works.