clover: Return 0 as storage size for local kernel args that are not set v2
authorTom Stellard <thomas.stellard@amd.com>
Fri, 20 Mar 2015 22:19:43 +0000 (22:19 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 23 Mar 2015 17:20:21 +0000 (17:20 +0000)
commitdfb1ae9d914b7723ef50fdd2efe811feebc045ad
tree50ccd6a82295658be0f68a92e07efaea935a913e
parent769b366b83dcc12bfe06935f816023cdcfbdf578
clover: Return 0 as storage size for local kernel args that are not set v2

The storage size for local kernel args can be queried before the
arguments are set by using the CL_KERNEL_LOCAL_MEM_SIZE param
of clGetKernelWorkGroupInfo().

The spec says that if local kernel arguments have not been specified,
then we should assume their size is 0.

v2:
  - Implement using c++11 member initialization.

Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Cc: 10.5 10.4 <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/clover/core/kernel.hpp