clover: fix getting scalar args api size
authorSerge Martin <edb+mesa@sigluy.net>
Tue, 30 Aug 2016 08:10:01 +0000 (10:10 +0200)
committerSerge Martin <edb@sigluy.net>
Fri, 16 Sep 2016 20:09:47 +0000 (22:09 +0200)
commit1c8d4c694bfb95ab90f152da710a8a9459a20228
tree2101e22305404a9a7d75bd9126ff2291ed8817b9
parentf65187bb937dcd0b3a388c946feda674151eef0e
clover: fix getting scalar args api size

This fix getting the size of a struct arg. vec3 types still work ok.
Only buit-in args need to have power of two alignment, getTypeAllocSize
reports the correct size in all cases.

Acked-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/llvm/codegen/common.cpp