diff --git a/src/gallium/frontends/lavapipe/lvp_image.c b/src/gallium/frontends/lavapipe/lvp_image.c index d6db34a925a..07585fef528 100644 --- a/src/gallium/frontends/lavapipe/lvp_image.c +++ b/src/gallium/frontends/lavapipe/lvp_image.c @@ -672,10 +672,10 @@ lvp_CopyImageToMemoryEXT(VkDevice _device, const VkCopyImageToMemoryInfoEXT *pCo for (unsigned i = 0; i < pCopyImageToMemoryInfo->regionCount; i++) { const VkImageToMemoryCopyEXT *copy = &pCopyImageToMemoryInfo->pRegions[i]; struct pipe_box box = { - box.x = copy->imageOffset.x, - box.y = copy->imageOffset.y, - box.width = copy->imageExtent.width, - box.height = copy->imageExtent.height, + .x = copy->imageOffset.x, + .y = copy->imageOffset.y, + .width = copy->imageExtent.width, + .height = copy->imageExtent.height, .depth = 1, }; switch (image->bo->target) {