[Mesa-dev] [Bug 29540] [glsl2] problem with vertex attribute locations and draw-time validation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 13 08:09:05 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29540

--- Comment #1 from Brian Paul <brian.e.paul at gmail.com> 2010-08-13 08:09:05 PDT ---
The new piglit test glsl-getattriblocation test returns attrib_loc=0 for the
old compiler and attrib_loc=1 for the new compiler.

This causes the glDrawArrays/Elements() validation test to fail at
api_validate.c:124 so nothing is drawn.

There's two issues here.

1. By returning attrib_loc=1 instead of 0 will we have one less user-defined
vertex attribute available to users with the new compiler?  The query of
GL_MAX_VERTEX_ATTRIBS_ARB still returns 16.

2. Mesa's glDrawArrays/Elements() validation check is incorrect.  I've added
two other piglit tests (glsl-bindattriblocation and glsl-novertexdata) that
test this logic.  They pass with NVIDIA's driver but fail with Mesa.  The
attached patch, however, fixes the problem for Mesa (for the old drivers at
least but it doesn't work with gallium yet).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list