mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
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:
parent
3257ab9f23
commit
1fe20aa7d9
2 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue