path: root/include/pci_ids
diff options
authorIan Romanick <>2013-08-17 00:27:43 -0700
committerIan Romanick <>2013-08-19 16:40:07 -0700
commitd3004acdd15d0fe3a0ac21f9bd7070d22b13a680 (patch)
treed517a10af14b552730b845f586161bcbe1eced93 /include/pci_ids
parent684316512c5570483365d36849250a008b6fcd84 (diff)
glsl: Use alignment of container record for its first field
The first field of a record in a UBO has the aligment of the record itself. Fixes piglit vs-struct-pad, fs-struct-pad, and (with the patch posted to the piglit list that extends the test) layout-std140. NOTE: The bit of strangeness with the version of visit_field without the record_type poitner is because that method is pure virtual in the base class. The original implementation of the class did this to ensure derived classes remembered to implement that flavor. Now they can implement either flavor but not both. I don't know a C++ way to enforce that. Signed-off-by: Ian Romanick <> Reviewed-by: Paul Berry <> Bugzilla: Cc: "9.2 9.1" (cherry picked from commit 574e4843e9e26aa6affa31c80ac42f745b68268b)
Diffstat (limited to 'include/pci_ids')
0 files changed, 0 insertions, 0 deletions