From: Pierre Moreau Date: Thu, 7 May 2020 08:38:35 +0000 (+0200) Subject: clover/api: Address missing braces for subobj init X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15a27ed73b2df959b095b9e4e8413e77ee55ef30;p=mesa.git clover/api: Address missing braces for subobj init Signed-off-by: Pierre Moreau Reviewed-by: Francisco Jerez Part-of: --- 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); }