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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 27 08:03:00 PDT 2010


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

--- Comment #1 from Brian Paul <brianp at vmware.com> 2010-08-27 08:03:00 PDT ---
All GLSL data is stored in float[4] vectors.  We try to pack individual floats
into these vectors but we can't do that for arrays.  So a GLSL array of K
floats array really occupies K float[4] vectors.  So in this case a GLSL
float[4] array occupies four float[4] vectors which totals 16 (0x10) floats.

The get_uniform_rows_cols() function isn't correctly figuring this out.

I'm attaching a patch/hack to work around this.  Let me know if it helps.

Have you tested with Mesa git/master with the new GLSL compiler?

-- 
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