summaryrefslogtreecommitdiff
path: root/src/mesa/vbo/vbo_exec_api.c
AgeCommit message (Collapse)Author
2011-06-17Merge cleanups for deliveryHEADr300PFO
2011-06-17radeon/r300: code cleanupPFO
2011-06-01Adds r300/dri support for GLES_mesaPFO
2011-05-31Corrects 'référence indéfinie vers « vbo_exec_FlushVertices_internal »'pfo
2011-03-01vbo: add vbo_always_unmap_buffers()Brian Paul
Drivers can call this function as needed. It tells the VBO module to always unmap the current glBegin/glEnd VBO when we flush. Otherwise it's possible to be in a flushed state but still have the VBO mapped.
2011-03-01vbo: generate GL_INVALID_VALUE for bad glVertexAttrib indexBrian Paul
2011-02-22vbo: simplify NeedFlush flag clearingBrian Paul
2011-02-22vbo: use ctx intstead of exec->ctxBrian Paul
2011-02-21vbo: more commentsBrian Paul
2011-02-21vbo: make vbo_exec_FlushVertices_internal() staticBrian Paul
2011-02-21vbo: remove old debug code, add commentsBrian Paul
2011-02-21vbo: rename some vars, add new comments, fix formatting, etc.Brian Paul
2011-02-21vbo: use ctx instead of exec->ctxBrian Paul
2011-01-09vbo: Include mfeatures.h in files that perform feature tests.Vinson Lee
2010-12-08vbo: Fix GLES2 glVertexAttrib.Chia-I Wu
Attribute 0 has no special meaning in GLES2. Add VertexAttrib4f_nopos for that purpose and make _es_VertexAttrib* call the new function. Rename _vbo_* to _es_* to avoid confusion. These functions are only used by GLES, and now some of them (_es_VertexAttrib*) even behave differently than vbo_VertexAttrib*.
2010-12-08vbo: Drop second ATTR macro.Chia-I Wu
There is no need to have a special version of ATTR for !FEATURE_beginend, since 81ccb3e2ce708619f4c23537a237d61bdffdd35f.
2010-11-06vbo: Avoid unnecessary copy to/from current in vertex format upgrade.Francisco Jerez
Rebuilding the vertex format from scratch every time we see a new vertex attribute is rather costly, new attributes can be appended at the end avoiding a copy to current and then back again, and the full attr pointer recalculation. In the not so likely case of an already existing attribute having its size increased the old behavior is preserved, this could be optimized more, not sure if it's worth it. It's a modest improvement in FlightGear (that game punishes the VBO module pretty hard in general, framerate goes from some 46 FPS to 50 FPS with the nouveau classic driver). Signed-off-by: Brian Paul <brianp@vmware.com>
2010-10-28mesa: implement integer-valued vertex attribute functionsBrian Paul
The integers still get converted to floats. That'll have to change someday.
2010-10-21vbo: support for primitive restartBrian Paul
We handle splitting of glDrawArrays() calls into two primitives here so that drivers don't have to worry about it.
2010-10-14Drop the "neutral" tnl moduleKristian Høgsberg
Just always check for FLUSH_UPDATE_CURRENT and call Driver.BeginVertices when necessary. By using the unlikely() macros, this ends up as a 10% performance improvement (for isosurf, anyway) over the old, complicated function pointer swapping.
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-07-15mesa: Fix potential out-of-bounds access by _vbo_Materialf.Vinson Lee
_vbo_Materialf calls _vbo_Materialfv, which uses the params argument as an array.
2010-04-27mesa: Move GLES1/2 vbo entrypoints to vbo_exec_api.cKristian Høgsberg
This let's us drop stubs.c.
2010-04-19mesa: unmap the immediate mode VB before destroying itBrian Paul
Fixes failed assertion from fd.o bug 27713. The assertion was added with the new resource/transfer changes. This patch could apply to the 7.8 branch but it's not essential.
2010-04-04mesa: implement core Mesa support for GL_ARB_draw_instancedBrian Paul
2010-02-25mesa: Move src/mesa/glapi/dispatch.h to mesa.Chia-I Wu
glapi/dispatch.h is a core Mesa header file. Move the header file to main/ to make this clear. It also becomes clear after this change that IN_DRI_DRIVER is only used in core Mesa to enable the remap table.
2010-02-19Drop macro wrappers for the aligned memory functionsKristian Høgsberg
2010-02-19Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg
2010-02-19Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-09mesa: Enable true refcounting for NullBufferObj.Michal Krol
This object can be shared with another context, so we cannot just delete it when the owning context is being destroyed. Ensuring that buffer objects are properly refcounted guarantees NullBufferObj is destroyed when all references to it are removed.
2009-12-01vbo: make flush recursion check code per-contextBrian Paul
This fixes invalid failed assertions when running multi-threaded apps.
2009-11-19vbo: added recursion check in vbo_exec_FlushVertices()Brian Paul
2009-11-04Merge branch 'mesa_7_6_branch'Brian Paul
Conflicts: src/mesa/drivers/windows/gdi/mesa.def
2009-11-04vbo: fix out-of-bounds array accessBrian Paul
The exec->vtx.inputs[] array was being written past its end. This was clobbering the following vbo_exec_context::eval state. Probably not noticed since evaluators and immediate mode rendering don't happen at the same time. Fixed the loop in vbo_exec_vtx_init(). Changed the size of the vbo_exec_context::vtx.arrays[] array. Added a bunch of debug-build assertions. Issue found by Vinson Lee.
2009-10-22mesa: fix up vbo commentsBrian Paul
2009-09-30mesa/main: New feature FEATURE_beginend.Chia-I Wu
This feature corresponds to the Begin/End paradigm. Disabling this feature also eliminates the use of GLvertexformat completely.
2009-09-30mesa/main: Make FEATURE_dlist follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of dlist.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_evaluators follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of eval.h to work without knowing if the feature is available.
2009-09-30mesa/main: New feature FEATURE_arrayelt.Chia-I Wu
This allows the removal of AEcontext.
2009-08-14vbo: call _mesa_valid_to_render()Brian Paul
2009-06-11Merge branch 'mesa_7_5_branch'José Fonseca
2009-06-11vbo: fix assertion, #define IMM_BUFFER_NAMEBrian Paul
This was sometimes seen when Glean exited upon test failure when using Gallium.
2009-06-09Merge branch 'mesa_7_5_branch'Jakob Bornecrantz
Conflicts: Makefile src/mesa/main/version.h src/mesa/shader/slang/slang_preprocess.c src/mesa/state_tracker/st_cb_bufferobjects.c
2009-06-08mesa/vbo: drop all references to vbo on destroyKeith Whitwell
We were adding references to the input arrays, but failing to drop them on destruction. This could lead to a 64kb buffer being leaked each context destruction.
2009-05-07mesa: move the NullBufferObj from GLcontext to gl_shared_stateBrian Paul
Since shared array objects may point to the null/default buffer object, the null/default buffer object should be part of the shared state.
2009-03-09vbo: yet tighter still usage of FLUSH_NEED_CURRENTKeith Whitwell
Previous change broke redbook/polys and probably others. I'm fairly sure that drivers like r300 don't need to touch ctx->Driver.NeedVertices, but this code is incredibly fragile and I'm not confident about removing it from there. Hopefully this gets things working again.
2009-03-09vbo: stricter checks on Driver.NeedFlushKeith Whitwell
This variable is being used in the r300 driver to trigger a flush under circumstances unrelated to the use in the vbo module. Tighten up the checks in vbo so as to avoid conflict with r300. Reported by Maciej Cencora <m.cencora@gmail.com>
2009-03-04vbo: second attempt - avoid getting buffer_ptr and buffer_map out of syncKeith Whitwell
2009-03-04Revert "vbo: avoid getting buffer_ptr and buffer_map out of sync"Keith Whitwell
This fixed a minor bug but broke everything else. This reverts commit 579ef8ab1984d895867f547afa60b3bec4c4599a.
2009-03-04vbo: avoid getting buffer_ptr and buffer_map out of syncKeith Whitwell