History log of /external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.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_attrib_tmp.h
1bc16bf98a1b5a4cca0c0ae2a80ba7982c6e4651 08-May-2012 Brian Paul <brianp@vmware.com> mesa: fix glMaterial / dlist bug

When glColorMaterial() is used to latch glColor commands to a material
attribute, glMaterial calls to change that material should become no-ops.
This failed to work properly when the glMaterial call was inside a
display list.

This removes the Material function from the vbo_attrib_tmp.h template
file. We have separate/different implementations for the "save" and
"exec" cases now.

NOTE: This is a candidate for the 8.0 branch.
/external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.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_attrib_tmp.h
a11b4c1e7aa0958e6128bbfae2173e289b2cce8f 20-Sep-2011 Yuanhan Liu <yuanhan.liu@linux.intel.com> mesa: fix error handling for glMaterial*

Trigger GL_INVALID_ENUM error if the face paramter is not a valid value.

Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side
[0, ctx->Constant.MaxShiniess].

v2: fix the max shininess value.

v3: suggested by Brian, move the face check into glMaterialfv function
to reduce code duplicate. Also, refactor the error message.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.h
6edef25a4b41583e1c285653fc0b84a316e9743d 07-Sep-2011 Vinson Lee <vlee@vmware.com> mesa/vbo: s/inline/INLINE/

MSVC does not support inline keyword.
/external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.h
51fcf080a342896ea0bc71dce01e948c810a8db9 04-Sep-2011 Dave Airlie <airlied@redhat.com> mesa/vbo: add ARB_vertex_type_2_10_10_10_rev APIs.

This adds the vertex processing paths for the 2101010 types. It converts
the attributes to floats for all the immediate entry points, some entrypoints
are normalised and the attrib APIs take a normalized parameter.

There are four main paths,
ui10 -> float unnormalized
i10 -> float unnormalized
ui10 -> float normalized
i10 -> float normalized
along with the ui2/i2 equivs.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.h
a2924b488b8d77381779bbb5a0097c467678d39b 02-Mar-2011 Brian Paul <brianp@vmware.com> vbo: generate GL_INVALID_VALUE for bad glVertexAttrib index
/external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.h
ca2618f4b632bf4b357a539a8fb7dafc99b35976 29-Oct-2010 Brian Paul <brianp@vmware.com> mesa: implement integer-valued vertex attribute functions

The integers still get converted to floats. That'll have to change someday.
/external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.h
beea704be231ef13edab93a7299efa297039239d 29-Oct-2010 Brian Paul <brianp@vmware.com> vbo: re-indent file
/external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.h
4a95185c9f30c2de7a03bb1a0653f51b53b1111d 22-May-2009 Brian Paul <brianp@vmware.com> mesa: rename MAX_VERTEX_ATTRIBS to MAX_VERTEX_GENERIC_ATTRIBS

Be clearer that this is the number of generic vertex program/shader
attributes, not counting the legacy attributes (pos, normal, color, etc).
/external/mesa3d/src/mesa/vbo/vbo_attrib_tmp.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_attrib_tmp.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_attrib_tmp.h