[Mesa-dev] [Bug 29823] GetUniform[if]v busted

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 27 13:22:05 PDT 2010


--- Comment #4 from Vladimir Vukicevic <vladimir at pobox.com> 2010-08-27 13:22:05 PDT ---
Oh hm, just tested it, and it's not quite correct -- for an array of floats, it
will write the entire array, instead of just the 1 component (because u_foo ==
u_foo[0] as far as getUniformLocation is concerned, and getUniform is supposed
to just return the specific array component in that case, not the entire

If I force the rows/cols to 1, then it works for array index [0], but u_foo[1]
returns the same value as u_foo[0].  split_location_offset in
_mesa_get_uniformfv is returning an offset of 1 for u_foo[1], but the function
doesn't use the offset at all it looks like.

(Still working on testing with mesa from git via egl.)

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