mesa/src/gallium/frontends
Yiwei Zhang 74f53a9293 lavapipe: ensure to use zero memoryOffset for wsi image alias binding
Per spec of VkBindImageMemorySwapchainInfoKHR:

> If swapchain is not NULL, the swapchain and imageIndex are used to
  determine the memory that the image is bound to, instead of memory and
  memoryOffset.

Meanwhile, common wsi is doing dedicated allocation for swapchain image
memory, so it's required to use zero memoryOffset by the spec. Then here
we can safely set to zero memoryOffset before passing to the actual
binding call.

In practice, when the struct is initialized with proper sType and memory
being VK_NULL_HANDLE, the memoryOffset is most likely left being zero
initialized. Not a critical must fix but still a bug.

Fixes: ace49d9e52 ("lavapipe: adopt wsi_common_get_memory")
Reviewed-by: Lucas Fryzek <lfryzek@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36335>
2025-07-24 19:19:30 +00:00
..
d3d10umd d3d10umd: update to latest pipe_surface changes 2025-06-02 16:49:32 +00:00
dri dri: use XCB_PRESENT_EVENT_* enum instead of macros for consistency 2025-07-24 16:14:19 +00:00
glx/xlib mesa: move dispatch.h and marshal_generated.h generation to glapi/gen 2025-03-27 05:46:35 +00:00
hgl egl,gallium,gbm,mesa: replace get_param with pipe_caps access 2025-01-17 04:39:46 +00:00
lavapipe lavapipe: ensure to use zero memoryOffset for wsi image alias binding 2025-07-24 19:19:30 +00:00
mediafoundation mediafoundation: change frame preanalysis rc from ifdef to runtime control 2025-07-19 01:28:01 +00:00
rusticl rusticl/kernel: unbind trailing shader images 2025-07-21 22:37:04 +00:00
teflon teflon: Release the arrays of tensors in operations 2025-04-22 14:58:34 +00:00
va frontends/va: get gaps_in_frame for h264 dec 2025-07-17 12:44:51 +00:00
vdpau dri2: Finish removing the now-unused dep_xcb_dri2. 2025-07-09 14:31:05 -07:00
wgl meson: remove with_shared_glapi variable (it's always true) 2025-03-06 17:13:22 +00:00