Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[waylandws_client]: Added Multithread support #4

Open
wants to merge 5 commits into
base: rcar_gen3e
Choose a base branch
from

Commits on Jun 1, 2023

  1. wsegl_client: add multi-thread support to egl wayland backend

    create wl_event_queue in eglCreateWindowSurface() to make it
    thread specific
    
    Authored-by: Ajay Kumar Sahoo <[email protected]>
    
    Re-based the code changes for wayland-wsegl v3.1.1.
    
    Signed-off-by: Rajendraprasad K J <[email protected]>
    rajendraprasadkj authored and sdikshit786 committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    78e8644 View commit details
    Browse the repository at this point in the history
  2. waylandws_client: Fix crash observed when wl_egl_window_resize called.

     - drawable->surface->frame_sync & drawable->callback can exists even if
     drawable->window points to NULL
     For eg- in case of resize.
     For the resize case if we avoid destroying the callback then done events
     gets dispatched in freed queue at later point of time.
    
     - Also for proper cleanup reallocate a new surface in case of resize while
     setting up new window drawable and free up the old one from inside
     WSEGLc_DeleteDrawable.
    
    Signed-off-by: Sunidhi Dixit <[email protected]>
    sdikshit786 committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    55bbfdc View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. wayalandws_client: Use a generic callback drawable->surface->sync_obj

    - For throtling the frames use a generic callback holder member
    instead of drawable->callback and drawable->surface->frame_sync
    to give a chance for the compositor to handle the commit and send
    a release event before checking for a free wl_buffer.
    
    Signed-off-by: Sunidhi Dixit <[email protected]>
    sdikshit786 committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    9ca405b View commit details
    Browse the repository at this point in the history
  2. wayalandws_client: removed aggressive sync mode

    There is no usecase in which aggressive sync mode
    is useful hence removing it. Also with this change
    there is no point in keeping drawable->callback.
    
    Signed-off-by: Sunidhi Dixit <[email protected]>
    sdikshit786 committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    fc5ab81 View commit details
    Browse the repository at this point in the history
  3. waylandws_client: Removed redundant queues

    Removed the redundant free_buffer_queue, free_buffer and
    free_buffer_unused. Added a new member in struct kms_buffer
    i.e. is_free which is true if the buffer is free to be used
    or false if the buffer is already been used as back buffer.
    
    Signed-off-by: Sunidhi Dixit <[email protected]>
    sdikshit786 committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    7df6c8b View commit details
    Browse the repository at this point in the history