clover/api: Address missing braces for subobj init
authorPierre Moreau <dev@pmoreau.org>
Thu, 7 May 2020 08:38:35 +0000 (10:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 10:58:05 +0000 (10:58 +0000)
Signed-off-by: Pierre Moreau <dev@pmoreau.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4943>

src/gallium/frontends/clover/api/memory.cpp

index e03793339c16e920ba20b9d4ace6e28d39e03dfe..84c1aaf059a0c02fa69803c76cef6f6fa62ab9c1 100644 (file)
@@ -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);
 }