diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c index 607ff6c7809..17da1d5c164 100644 --- a/src/gallium/frontends/lavapipe/lvp_device.c +++ b/src/gallium/frontends/lavapipe/lvp_device.c @@ -2512,7 +2512,7 @@ lvp_image_bind(struct lvp_device *device, } else { for (unsigned plane = 0; plane < image->plane_count; plane++) { result = lvp_image_plane_bind(device, &image->planes[plane], mem, - mem_offset + image->offset, &offset_B); + mem_offset, &offset_B); if (result != VK_SUCCESS) return result; } diff --git a/src/gallium/frontends/lavapipe/lvp_private.h b/src/gallium/frontends/lavapipe/lvp_private.h index 89b698f470b..6a31f071439 100644 --- a/src/gallium/frontends/lavapipe/lvp_private.h +++ b/src/gallium/frontends/lavapipe/lvp_private.h @@ -285,7 +285,6 @@ struct lvp_image_plane { struct lvp_image { struct vk_image vk; - VkDeviceSize offset; VkDeviceSize size; uint32_t alignment; bool disjoint;