Commit 0102adcd authored by Vinson Lee's avatar Vinson Lee

clover: Add constructor for sampler_argument.

Fix defects reported by Coverity Scan.

member_not_init_in_gen_ctor: The compiler-generated constructor for this class does not initialize s.
member_not_init_in_gen_ctor: The compiler-generated constructor for this class does not initialize st.
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
parent 92ec7b57
Pipeline #260395 waiting for manual action with stages
in 11 seconds
......@@ -631,6 +631,9 @@ void
kernel::image_wr_argument::unbind(exec_context &ctx) {
}
kernel::sampler_argument::sampler_argument() : s(nullptr), st(nullptr) {
}
void
kernel::sampler_argument::set(size_t size, const void *value) {
if (!value)
......
......@@ -233,6 +233,8 @@ namespace clover {
class sampler_argument : public argument {
public:
sampler_argument();
virtual void set(size_t size, const void *value);
virtual void bind(exec_context &ctx,
const module::argument &marg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment