mesa/vbo: Check for invalid types in various packed vertex functions.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Nov 2012 20:06:13 +0000 (12:06 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Nov 2012 20:36:33 +0000 (12:36 -0800)
commit7a414fea876807810c27cedb243920bd7b088ea7
tree110010147fdc93afa1a516d163ac2d4e225e8b4e
parent6a529e2b484c6d17c6244efee8e7dae4de79e386
mesa/vbo: Check for invalid types in various packed vertex functions.

According to the ARB_vertex_type_2_10_10_10_rev specification:
"The error INVALID_ENUM is generated by VertexP*, NormalP*,
 TexCoordP*, MultiTexCoordP*, ColorP*, or SecondaryColorP if <type>
 is not UNSIGNED_INT_2_10_10_10_REV or INT_2_10_10_10_REV."

Fixes 7 subcases of oglconform's packed-vertex test.

v2: Add "gl" prefix to error messages (pointed out by Brian).
    Also rebase atop the ctx plumbing.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo_attrib_tmp.h