clover: Align kernel argument sizes to nearest power of 2
authorJan Vesely <jan.vesely@rutgers.edu>
Fri, 25 Apr 2014 18:24:55 +0000 (14:24 -0400)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 29 Apr 2014 11:09:21 +0000 (13:09 +0200)
commit7b11c97d31ea9ebdf5d4b89e60bcc96d256aa7a4
treed1696f0ade4eb8b91dcc3acb0dfffd69280df1e3
parentdf985cc8f649fa533737ac71b60db00b9b0c6d41
clover: Align kernel argument sizes to nearest power of 2

v2: use a new variable for aligned size
    add comment
    make both vars const
    only use the aligned value in argument constructors
    fix comment typo

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/llvm/invocation.cpp