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 <vlee@freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8657>
This commit is contained in:
Vinson Lee 2021-01-22 13:18:55 -08:00 committed by Marge Bot
parent 3257ab9f23
commit 1fe20aa7d9
2 changed files with 5 additions and 0 deletions

View file

@ -632,6 +632,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)

View file

@ -235,6 +235,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);