lavapipe: Fix struct initialization
authorVinson Lee <vlee@freedesktop.org>
Mon, 7 Aug 2023 05:26:57 +0000 (22:26 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 10 Aug 2023 06:15:10 +0000 (23:15 -0700)
commitf9cd8446efe1a33d1de5f3d60bf957bc006fa84f
tree7f5afb8f5b7a5e9f870301d2ea824683819c6932
parent81cae3d8d23f4ee8745ebe9661fa06107457713a
lavapipe: Fix struct initialization

Fix defect reported by Coverity Scan.

Evaluation order violation (EVALUATION_ORDER)
write_write_typo: In box.x = box.x = copy->imageOffset.x, box.x is written twice with the same value.

Fixes: 9e9d90c6c38 ("lavapipe: VK_EXT_host_image_copy")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24531>
src/gallium/frontends/lavapipe/lvp_image.c