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

Platform: New platform probe design #2378

Merged
merged 21 commits into from
Apr 14, 2022
Merged

Platform: New platform probe design #2378

merged 21 commits into from
Apr 14, 2022

Commits on Apr 7, 2022

  1. mir::udev: Add Device::clone()

    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    14b544e View commit details
    Browse the repository at this point in the history
  2. mir::udev: Add Context::char_device_from_devnum()

    There are locations where we have a `dev_t` but will need a `udev::Device`.
    Make this possible
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    76f1c0e View commit details
    Browse the repository at this point in the history
  3. cmake: Add necessary headers to mirudev target

    This lets other parts of Mir simply add a `target_link_libaries(... mirudev)` to
    get proper header handling.
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    863e240 View commit details
    Browse the repository at this point in the history
  4. Platform: New platform probe design.

    This accomplishes multiple goals:
    * Platforms can now “bind” to a device, and the platform which claims
      to support that device best wins.
    * Platforms can list *each* device that they can drive, so later we
      can construct a `DisplayPlatform` or `RenderingPlatform` on the
      specific device.
    * Platforms can share data between the `probe` and construction phase
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    8500918 View commit details
    Browse the repository at this point in the history
  5. Be more clear in platform probe logging

    Log what type of driver we've selected (display or rendering), and
    fix the “Found <driver type> driver: $FOO” message
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    c488a91 View commit details
    Browse the repository at this point in the history
  6. mg::modules_for_device: Don't return unusable platforms

    Even if the platform is not claiming to support a specific
    device, we still shouldn't return platforms which return
    `PlatformPriority::unsupported`.
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    3877e16 View commit details
    Browse the repository at this point in the history
  7. gbm-kms: Fix probing for rendernodes

    The rendernode devices are /dev/dri/render*D*$NUMBER.
    
    Fixes probing the gbm-kms rendering platform.
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    38069c7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    58fd949 View commit details
    Browse the repository at this point in the history
  9. tests/ServerPlatformProbe: Drop vestigial test for nested.

    We no longer have a nested platform in that sense!
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    b5eeba3 View commit details
    Browse the repository at this point in the history
  10. test/ServerPlatformProbe: Simplify IgnoresNonPlatformModules

    There's no reason this requires the Mesa platform - the dummy
    platform is sufficient here.
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    d5a7109 View commit details
    Browse the repository at this point in the history
  11. test/ServerPlatformProbe: Test that we reject a module claiming Platf…

    …ormPriority::unsupported
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    c4c0a4e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bb60847 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3aea1fb View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a14ad70 View commit details
    Browse the repository at this point in the history
  15. mg::probe_module: Print out what module we're probing *before* emitti…

    …ng its probing diagnostics
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    819d951 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7760dae View commit details
    Browse the repository at this point in the history
  17. eglstream-kms: Don't use <span>

    Turns out that `<span>` is one of the C++20 features not supported
    by 20.04's libstdc++. ☹
    RAOF committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    9a3f28b View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2022

  1. tests/PlatformProber: [[maybe_unused]] some helpers which may or may …

    …not be used depending on the set of built platforms
    RAOF committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    e8a1b9a View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2022

  1. Configuration menu
    Copy the full SHA
    3848b3d View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2022

  1. platform: Bump graphics platform ABI

    `MIR_SERVER_GRAPHICS_PLATFORM_STANZA_VERSION` is the variable we use for the
    graphics platform-DSO <-> libmirplatform ABI.
    RAOF committed Apr 14, 2022
    Configuration menu
    Copy the full SHA
    59a71c7 View commit details
    Browse the repository at this point in the history
  2. platform: Bump the other half(?) of graphics ABI.

    TODO: Do we *need* both halves?
    RAOF committed Apr 14, 2022
    Configuration menu
    Copy the full SHA
    d25f793 View commit details
    Browse the repository at this point in the history