summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_transfer.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-08-17 00:27:43 -0700
committerIan Romanick <[email protected]>2013-08-19 16:39:04 -0700
commit574e4843e9e26aa6affa31c80ac42f745b68268b (patch)
tree6ce82887a557f927b81c3393d49aac2d29e2d44b /src/gallium/drivers/ilo/ilo_transfer.c
parent5ac884fd9f213baed1de52eb7d17b86455c48a02 (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 <[email protected]> Reviewed-by: Paul Berry <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68195 Cc: "9.2 9.1" [email protected]
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_transfer.c')
0 files changed, 0 insertions, 0 deletions