summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2015-03-20 22:19:43 +0000
committerTom Stellard <[email protected]>2015-03-23 17:20:21 +0000
commitdfb1ae9d914b7723ef50fdd2efe811feebc045ad (patch)
tree50ccd6a82295658be0f68a92e07efaea935a913e /src
parent769b366b83dcc12bfe06935f816023cdcfbdf578 (diff)
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 <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Cc: 10.5 10.4 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/clover/core/kernel.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/core/kernel.hpp b/src/gallium/state_trackers/clover/core/kernel.hpp
index bf5998de825..d6432a4df8d 100644
--- a/src/gallium/state_trackers/clover/core/kernel.hpp
+++ b/src/gallium/state_trackers/clover/core/kernel.hpp
@@ -175,7 +175,7 @@ namespace clover {
virtual void unbind(exec_context &ctx);
private:
- size_t _storage;
+ size_t _storage = 0;
};
class constant_argument : public argument {