Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • xserver xserver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 887
    • Issues 887
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 105
    • Merge requests 105
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • xserverxserver
  • Merge requests
  • !351

modesetting: Use EGL_MESA_query_driver where available to choose the DRI driver

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kenneth Graunke requested to merge kwg/xserver:query-driver into master Nov 22, 2019
  • Overview 4
  • Commits 2
  • Pipelines 2
  • Changes 7

This series makes the modesetting driver use EGL_MESA_query_driver / eglGetDisplayDriverName to select the DRI driver when setting up Glamor-based DRI2. This allows us to bypass the X server's PCI ID driver map entirely, centralizing the decision making inside Mesa's loader.

Suggested by @ajax in !278 (merged).

This will make the X server select the 'iris' driver for Intel Gen12/Tigerlake, which isn't supported by i965 any longer. It also paves the way for switching from i965 to iris on other platforms—we can select once in Mesa and not try and keep both places in sync.

Requires an unreleased libepoxy to enable the new functionality (1.5.3 doesn't conatin EGL_MESA_query_driver support).

If the EGL implementation doesn't support the extension, or libepoxy is too old, the modesetting driver continues using the existing PCI ID driver map and works as always.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: query-driver