[Bug 76323] New: GLSL compiler ignores layout(binding=N) on uniform blocks
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Mar 18 07:51:50 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=76323
Priority: medium
Bug ID: 76323
Assignee: idr at freedesktop.org
Summary: GLSL compiler ignores layout(binding=N) on uniform
blocks
QA Contact: intel-3d-bugs at lists.freedesktop.org
Severity: major
Classification: Unclassified
OS: Linux (All)
Reporter: github at socker.lepus.uberspace.de
Hardware: Other
Status: NEW
Version: 10.1
Component: glsl-compiler
Product: Mesa
Created attachment 96005
--> https://bugs.freedesktop.org/attachment.cgi?id=96005&action=edit
minimal example using glfw and glm
Hi Folks,
it seems that the GLSL compiler (or maybe some other component) simply ignores
a layout(binding=N) specifier on uniform blocks. This means, no matter what you
set there, the binding is always overridden by some default value (when having
a single uniform block it seems to be always 0).
I've attached a simple test program (could be a little simpler, I just copied
stuff together from my projects) that demonstrates the bug. The program either
works when binding the uniform buffer to binding point 0, or when manually
setting the shaders bind point with glUniformBlockBinding.
Tested on a Intel HD4000 with Mesa 10.0.3 and Mesa 10.1.0 on Arch Linux. Tried
Kernels 3.13.5 and 3.13.6. The program works on a nVidia GeForce 9600 GT with
the proprietary driver (haven't tested nouveau yet).
Regards
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20140318/e991016e/attachment.html>
More information about the intel-3d-bugs
mailing list