History log of /external/mesa3d/src/mesa/vbo/vbo_save.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
492b69f3be3e355064c67bc6f4a30d40e997ce9d 30-Oct-2012 Marek Olšák <maraeo@gmail.com> vbo: fix glVertexAttribI* functions

The functions were broken, because they converted ints to floats.
Now we can finally advertise OpenGL 3.0. ;)

In this commit, the vbo module also tracks the type for each attrib
in addition to the size. It can be one of FLOAT, INT, UNSIGNED_INT.

The little ugliness is the vertex attribs are declared as floats even though
there may be integer values. The code just copies integer values into them
without any conversion.

This implementation passes the glVertexAttribI piglit test which I am going
to commit in piglit soon. The test covers vertex arrays, immediate mode and
display lists.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>

v2: cosmetic changes as suggested by Brian
(cherry picked from commit acf438f5375e2426386694e541b843dc6f8fd11a)
/external/mesa3d/src/mesa/vbo/vbo_save.h
781f84a3c2f7a06cb9e6cc44b8d5d08b39577c25 07-Feb-2012 Brian Paul <brianp@vmware.com> vbo: unmap vertex store before executing lists

We don't want our VBOs mapped when we're drawing. This change checks
if the vertex store VBO is mapped before we execute a list, unmaps it,
then remaps it after drawing. This situation pops up when building a
nested display list in GL_COMPILE_AND_EXECUTE mode.

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/vbo/vbo_save.h
97dedfda5fbb4078db28519e50adeeeb8e1a1dc1 10-Nov-2011 Brian Paul <brianp@vmware.com> vbo: better handling of VBO allocation failures

Previously, if we failed to allocate a VBO (either for display list
compilation or immediate mode rendering) we'd eventually segfault
when trying to map the non-existant buffer or in a glVertex/Color/etc
call when we hit a null pointer.

Now we don't try to map non-existant buffers and if we do fail to
allocate a VBO we plug in no-op functions for glVertex/Color/etc
so we don't segfault.
/external/mesa3d/src/mesa/vbo/vbo_save.h
409748ac0b92aacae6ad9c2bcedca4fef8986eea 03-Aug-2011 Mathias Froehlich <Mathias.Froehlich@web.de> vbo: Clean up unused variables in the vbo module.

Remove some unused or unused but set variables
from the vbo module.
/external/mesa3d/src/mesa/vbo/vbo_save.h
9520f483b8f1e45fa474674b415554988de5d8d3 01-Oct-2011 Brian Paul <brianp@vmware.com> mesa: s/INLINE/inline/

INLINE is still seen in some files (some generated files, etc) but this
is a good start.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/vbo/vbo_save.h
d329b68f350a6db9439f71a0d1a8d2a8e2fd426c 08-Jun-2011 Brian Paul <brianp@vmware.com> vbo: added a comment
/external/mesa3d/src/mesa/vbo/vbo_save.h
14b36cd568b7f3ae963430248fcd7ef0b7a165f6 09-Jan-2011 Vinson Lee <vlee@vmware.com> vbo: Include mfeatures.h in files that perform feature tests.
/external/mesa3d/src/mesa/vbo/vbo_save.h
b3d2ec9942303d1d03e28a25b030eb060415abfb 17-Oct-2010 Mathias Fröhlich <Mathias.Froehlich@web.de> vbo: Avoid the copy to current in dlists if not required.

The current state is allowed to be undefined past DrawElements et al.
Consequently omit that copying at least in the display list code.
This pays us some percents performance.

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/vbo/vbo_save.h
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/vbo/vbo_save.h
8d5c83c467f83b44f5f2e271c4f9cca2d45af518 12-May-2010 Chia-I Wu <olv@lunarg.com> mesa/es: Remove omit list.

vbo/vbo_save* are the last members on the omit list. Test FEATURE_dlist
in the sources and remove the omit list.
/external/mesa3d/src/mesa/vbo/vbo_save.h
8b2ebd15310cbd5d905b08761b5e950f8e2580e5 16-Apr-2009 Keith Whitwell <keithw@vmware.com> vbo: cache last dlist vertex in malloced memory

Avoids repeated mapping of the VBO buffer on display list replay. We
need access to the final vertex in order to update the GL current attrib
values.
/external/mesa3d/src/mesa/vbo/vbo_save.h
916de35d677ca5238e9515840fa5aa9f81302c5b 03-Mar-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/gallium-0.1'

Conflicts:

scons/gallium.py
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/gallium/include/pipe/p_defines.h
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_exec_draw.c
c4d1f4607abf3dfbcfcffc5c67bb89d420d3381a 03-Mar-2009 Keith Whitwell <keithw@vmware.com> vbo: use MapBufferRange where available

Previously would have to allocate a new VBO after firing a draw command
as subsequent call to Map() on old VBO might block if the driver had
submitted the commands to hardware.
/external/mesa3d/src/mesa/vbo/vbo_save.h
446abc2799a143c32c4c48472f3f964f9288a623 31-Jan-2009 Brian <brianp@vmware.com> mesa: display list clean-ups

Rename some structs and fields to be more consistant with the rest of mesa.
/external/mesa3d/src/mesa/vbo/vbo_save.h
c223c6b663cd5db39ba19c2be74b88cc3b8f53f3 04-Jul-2007 Brian <brian.paul@tungstengraphics.com> Be more consistant with paths in #includes. Eventually, eliminate a bunch of -I flags.
/external/mesa3d/src/mesa/vbo/vbo_save.h
2421b25dd777ebfd614ae45907fd4af8c2713102 15-Jan-2007 Keith Whitwell <keith@tungstengraphics.com> Remove special-case handling for index and edgeflag

This isn't required with the changes to core mesa and the new
attribute layout.
/external/mesa3d/src/mesa/vbo/vbo_save.h
1f07439fe8c6803f70a27a1cdb9d76360ae40571 31-Oct-2006 Keith Whitwell <keith@tungstengraphics.com> move public structure definitions to vbo.h
/external/mesa3d/src/mesa/vbo/vbo_save.h
e8abd098b36c30d76b4c396970fd793ae58e0702 30-Oct-2006 Keith Whitwell <keith@tungstengraphics.com> Remove wakeup functions. This code is intended to be active all the
time.
/external/mesa3d/src/mesa/vbo/vbo_save.h
fd12b37dbada6f945a94b93ecf332d0b6a8eef06 29-Oct-2006 Keith Whitwell <keith@tungstengraphics.com> Checkpoint of new vbo-building code. Currently builds regular arrays
rather than VBO's - VBOs are easy but need to look closer at the
driver interface. The trivial/tri demo works.
/external/mesa3d/src/mesa/vbo/vbo_save.h