clover: Use braces arround a union initializer
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19816>
This commit is contained in:
parent
4b6c5781dc
commit
9a9a49d630
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue