summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-03-20 22:19:43 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2015-03-26 01:47:11 +0000
commit3147f0bd25c45c9bd2a2b1fec622eb1821e11df8 (patch)
tree5834dcd1c276f2e9bfa63421bfb84c3bfd43022f /src
parentc2760f0a1603b12b64237252d12b611b1d7883f3 (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 <jan.vesely@rutgers.edu> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Cc: 10.5 10.4 <mesa-stable@lists.freedesktop.org> (cherry picked from commit dfb1ae9d914b7723ef50fdd2efe811feebc045ad)
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 {