clover: Use braces arround a union initializer
authorJason Ekstrand <jason.ekstrand@collabora.com>
Thu, 17 Nov 2022 17:55:08 +0000 (11:55 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Nov 2022 22:22:58 +0000 (22:22 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19816>

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

index bd0c332..92a6697 100644 (file)
@@ -346,7 +346,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 clCreateImageWithProperties(d_ctx, NULL, d_flags, format, &desc, host_ptr, r_errcode);
 }
@@ -358,7 +358,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 clCreateImageWithProperties(d_ctx, NULL, d_flags, format, &desc, host_ptr, r_errcode);
 }