diff options
author | Marek Olšák <[email protected]> | 2015-12-19 16:44:52 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-01-02 15:15:44 +0100 |
commit | ffc4716e9730ca162ce5dfcf0298125269c6d908 (patch) | |
tree | 37571ed7bcc236998dc969ab82e11529a9c1871e /src/glsl/link_functions.cpp | |
parent | 36c93a6fae275614b6004ec5ab085774d527e1bc (diff) |
u_upload_mgr: rework the application of alignment
The function only aligned the size, but not the offset.
The offset was aligned only when the previous suballocation was aligned.
That yielded the correct offset alignment if the alignment was constant
for all suballocations.
Instead, directly align the offset, but allow an unaligned size.
There is no change in behavior, because the alignment is constant
at the moment.
This a prerequisite for allowing a variable alignment for suballocations.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/glsl/link_functions.cpp')
0 files changed, 0 insertions, 0 deletions