mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-20 23:28:23 +02:00
wsi/x11: Set up screen resources on swapchain creation.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no> Reviewed-and-tested-by: Mario Kleiner <mario.kleiner.de@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39551>
This commit is contained in:
parent
779eb97cd2
commit
941fbd9047
1 changed files with 4 additions and 0 deletions
|
|
@ -1210,6 +1210,8 @@ struct x11_swapchain {
|
|||
mtx_t thread_state_lock;
|
||||
struct u_cnd_monotonic thread_state_cond;
|
||||
|
||||
struct wsi_x11_screen_resources * screen_resources;
|
||||
|
||||
/* Lock and condition variable for present wait.
|
||||
* Signalled by event thread and waited on by callers to PresentWaitKHR. */
|
||||
mtx_t present_progress_mutex;
|
||||
|
|
@ -2914,6 +2916,8 @@ x11_surface_create_swapchain(VkIcdSurfaceBase *icd_surface,
|
|||
goto fail_init_event_queue;
|
||||
}
|
||||
|
||||
chain->screen_resources = wsi_x11_connection_find_screen_resources(wsi_device, conn, window);
|
||||
|
||||
/* It is safe to set it here as only one swapchain can be associated with
|
||||
* the window, and swapchain creation does the association. At this point
|
||||
* we know the creation is going to succeed. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue