[Bug 83533] New: [UBO] nested structures don't get appropriate padding
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Sep 5 08:26:27 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=83533
Priority: medium
Bug ID: 83533
Assignee: idr at freedesktop.org
Summary: [UBO] nested structures don't get appropriate padding
QA Contact: intel-3d-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: idr at freedesktop.org
Hardware: Other
Status: NEW
Version: git
Component: glsl-compiler
Product: Mesa
Created attachment 105808
--> https://bugs.freedesktop.org/attachment.cgi?id=105808&action=edit
Test case
Looking at the IR dump, the compiler frontend generates
(expression bvec2 ubo_load (constant uint (0)) (constant uint (8)))
to load s2.bv.x. However, the GL API (correctly) believes that s2.bv is at
offset 16. Deleting any field from S1 or S2 (or putting the contents of S2
directly in the UBO) masks the problem. It seems that some part of the
compiler stack is not putting padding after s1 to align bv to a vec4 boundary.
--
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/20140905/2b5c55c7/attachment-0001.html>
More information about the intel-3d-bugs
mailing list