From 15a27ed73b2df959b095b9e4e8413e77ee55ef30 Mon Sep 17 00:00:00 2001 From: Pierre Moreau Date: Thu, 7 May 2020 10:38:35 +0200 Subject: [PATCH] clover/api: Address missing braces for subobj init Signed-off-by: Pierre Moreau Reviewed-by: Francisco Jerez Part-of: --- src/gallium/frontends/clover/api/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/clover/api/memory.cpp b/src/gallium/frontends/clover/api/memory.cpp index e03793339c1..84c1aaf059a 100644 --- a/src/gallium/frontends/clover/api/memory.cpp +++ b/src/gallium/frontends/clover/api/memory.cpp @@ -234,7 +234,7 @@ clCreateImage2D(cl_context d_ctx, cl_mem_flags d_flags, size_t width, size_t height, size_t row_pitch, void *host_ptr, cl_int *r_errcode) { const cl_image_desc desc = { CL_MEM_OBJECT_IMAGE2D, width, height, 0, 0, - row_pitch, 0, 0, 0, NULL }; + row_pitch, 0, 0, 0, { NULL } }; return clCreateImage(d_ctx, d_flags, format, &desc, host_ptr, r_errcode); } @@ -246,7 +246,7 @@ clCreateImage3D(cl_context d_ctx, cl_mem_flags d_flags, size_t row_pitch, size_t slice_pitch, void *host_ptr, cl_int *r_errcode) { const cl_image_desc desc = { CL_MEM_OBJECT_IMAGE3D, width, height, depth, 0, - row_pitch, slice_pitch, 0, 0, NULL }; + row_pitch, slice_pitch, 0, 0, { NULL } }; return clCreateImage(d_ctx, d_flags, format, &desc, host_ptr, r_errcode); } -- 2.30.2