mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
anv: initialise and increment send_sbc
At least set this to not be uninitialised memory. Cc: "12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
7dddf0b7ab
commit
dfe74fd1a9
1 changed files with 2 additions and 0 deletions
|
|
@ -611,6 +611,7 @@ x11_queue_present(struct anv_swapchain *anv_chain,
|
|||
|
||||
xshmfence_reset(image->shm_fence);
|
||||
|
||||
++chain->send_sbc;
|
||||
xcb_void_cookie_t cookie =
|
||||
xcb_present_pixmap(chain->conn,
|
||||
chain->window,
|
||||
|
|
@ -843,6 +844,7 @@ x11_surface_create_swapchain(VkIcdSurfaceBase *icd_surface,
|
|||
chain->window = x11_surface_get_window(icd_surface);
|
||||
chain->extent = pCreateInfo->imageExtent;
|
||||
chain->image_count = num_images;
|
||||
chain->send_sbc = 0;
|
||||
|
||||
chain->event_id = xcb_generate_id(chain->conn);
|
||||
xcb_present_select_input(chain->conn, chain->event_id, chain->window,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue