Skip to content

Add support for XCB #5

Closed
Closed

Description

@tomaka
No description provided.

Activity

  1. kvark commented on May 3, 2016

    @kvark
    Contributor

    Some machines don't support VK_KHR_xlib_surface but do support VK_KHR_xcb_surface, so this is a compatibility concern:

    Instance Extensions     count = 3
            VK_KHR_surface                  : extension revision 25
            VK_KHR_xcb_surface              : extension revision  5
            VK_EXT_debug_report             : extension revision  2
    
  2. kvark commented on May 11, 2016

    @kvark
    Contributor

    Found this library as a potential workaround: https://github.com/Aatch/rust-xcb

  3. nicokoch commented on Jul 27, 2016

    @nicokoch
    Contributor

    Just a heads up for anyone searching a workaround.

    The intel linux driver does indeed support xlib, but it has to be enabled at compile time.
    You can compile the vulkan driver yourself with VK_KHR_xlib_surface enabled by enabling
    -DVK_USE_PLATFORM_XLIB_KHR.

    For anyone using archlinux, I have submitted a feature request to their bug tracker (https://bugs.archlinux.org/task/50160). It looks like they are working on it (or at least are aware of the problem). For other distros, you can try submitting a bug report to their corresponding bug tracker.

  4. kvark commented on Jul 27, 2016

    @kvark
    Contributor

    Thanks for the info @nicokoch

  5. mikedilger commented on Feb 19, 2017

    @mikedilger
    Contributor

    With xlib I'm experiencing (in vulkan) get_physical_device_surface_formats_khr() doesn't return until the window is focused. With xcb (in a separate C++ program - Sascha Willems demos) this doesn't happen, the window draws irrespective of focus. I can't be sure the reason for this behavioral difference is xlib vs xcb, but it is looking that way, in which case I prefer xcb and +1 this issue.

  6. francesca64 commented on Apr 9, 2018

    @francesca64
    Member

    Is this still relevant?

  7. tomaka commented on Apr 10, 2018

    @tomaka
    ContributorAuthor

    This is still relevant, but not really a priority.

  8. added
    S - enhancement
    D - hard
    P - low
    C - waiting on author
    on May 6, 2018
  9. mikedilger commented on May 25, 2018

    @mikedilger
    Contributor

    Just fyi:
    https://crates.io/crates/ash exposes Vulkan's
    https://docs.rs/ash/0.24.1/ash/vk/types/struct.XcbSurfaceCreateInfoKHR.html
    which wants not only the connection (xcb_connection_t) but also the window (xcb_window_t). I notice that winit already provides the former with get_xcb_connection() but not the latter, so searching I found this issue and now I remember xcb isn't really supported yet.

  10. francesca64 commented on May 25, 2018

    @francesca64
    Member

    I don't believe adding a full-fledged XCB backend to be a good idea until winit stabilizes more. We have enough of a struggle keeping the existing backends synchronized.

    That said, are you sure that using the return of get_xlib_window as your xcb_window_t doesn't work? I'd imagine it would work.

  11. mikedilger commented on May 25, 2018

    @mikedilger
    Contributor

    I did not know that get_xlib_window is the same for xcb. Thanks.

  12. added
    H - help wanted
    and removed
    C - waiting on author
    on Jul 22, 2019
  13. added a commit that references this issue on Feb 11, 2020
  14. Avokadoen commented on May 12, 2020

    @Avokadoen

    This seems to be the cause of a UnsupportedWindowHandle error for my Ubuntu station on a "HP Prodesk 600 Small Form Factor"

  15. rib commented on May 29, 2022

    @rib
    Contributor

    At least for reference it's probably worth linking this PR here which quietly includes a full port to xcb: #2088 :)

    At least one notable concern is that a side effect of a full port to xcb (as opposed to more of a hybrid approach that just optimizes certain request sequences with xcb but keeps xlib for event processing) is that it would remove XIM based IME support.

    XIM is arguable quite archaic and there should be better ways to support IMEs, like having direct support for ibus perhaps, but still something to consider.

  16. kchibisov commented on May 29, 2022

    @kchibisov
    Member

    It won't and it'll likely fixed it. We can't support ibus directly, since it's, you know, ibus, and other IMEs won't work.

    At least one notable concern is that a side effect of a full port to xcb (as opposed to more of a hybrid approach that just optimizes certain request sequences with xcb but keeps xlib for event processing) is that it would remove XIM based IME support.

    XIM is arguable quite archaic and there should be better ways to support IMEs, like having direct support for ibus perhaps, but still something to consider.

    We can use this https://crates.io/crates/xcb-imdkit

  17. rib commented on May 29, 2022

    @rib
    Contributor

    It won't and it'll likely fixed it.

    Sorry I didn't quite follow this part of your reply, but yeah planning to integrate something like xcb-imdkit sounds reasonable, at least for compatibility.

    I mainly just wanted to link the existence of an xcb port back to this issue and highlight that currently it would result in removing XIM based IME support.

  18. notgull commented on Feb 25, 2023

    @notgull
    Contributor

    This would be closed by #2614.

  19. added
    DS - x11
    and removed on Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    D - hardDS - x11H - help wantedP - lowS - enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions