Re: [Mesa-dev] [PATCH v1.1 2/2] clover: fix getting scalar args api size

2016-06-05 Thread Francisco Jerez
Vedran Miletić writes: > On 06/04/2016 04:27 AM, Francisco Jerez wrote: >> Serge Martin writes: >> >>> 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 >>>

Re: [Mesa-dev] [PATCH v1.1 2/2] clover: fix getting scalar args api size

2016-06-05 Thread Vedran Miletić
On 06/04/2016 04:27 AM, Francisco Jerez wrote: Serge Martin writes: 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. Is there any guarantee that the

Re: [Mesa-dev] [PATCH v1.1 2/2] clover: fix getting scalar args api size

2016-06-03 Thread Francisco Jerez
Serge Martin writes: > 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. > Is there any guarantee that the alloc size of the type will match what the CL

[Mesa-dev] [PATCH v1.1 2/2] clover: fix getting scalar args api size

2016-06-02 Thread Serge Martin
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. Cc: 12.0 --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 7 +++ 1 file