diff options
author | Dave Airlie <[email protected]> | 2016-08-30 09:46:29 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-10-14 04:45:00 +1000 |
commit | dfe74fd1a9e16647e0f2673d3676264f2a588a95 (patch) | |
tree | 81f16357cdf0ec34de703db812fb0ec98e45a75d | |
parent | 7dddf0b7ab9a222a79b647082ebfb8787c8559ac (diff) |
anv: initialise and increment send_sbc
At least set this to not be uninitialised memory.
Cc: "12.0" <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_wsi_x11.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_wsi_x11.c b/src/intel/vulkan/anv_wsi_x11.c index 25c585f22c2..010c86c4f26 100644 --- a/src/intel/vulkan/anv_wsi_x11.c +++ b/src/intel/vulkan/anv_wsi_x11.c @@ -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, |