Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • demos demos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • demosdemos
  • Merge requests
  • !5

Draft: eglinfo: Add renderer and command line options

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Olivier Fourdan requested to merge ofourdan/demos:eglinfo into main Sep 19, 2019
  • Overview 2
  • Commits 4
  • Pipelines 0
  • Changes 3

This merge request was initially aimed at adding the renderer to eglinfo.

However, to get to the renderer, it needs to create a context.

Unfortunately eglinfo links to libGL which may or may not be able to create a GLES context (apparently, it works with Mesa, not sure about others) so using something like epoxy which takes care of dlopen'ing the right libs would be interesting.

With adding even more info to eglinfo, it might be desirable to give users the ability to specify the platform or API they want to query.

So this series of patches does:

  • Add an optional dependency on epoxy
  • Reports the renderer for all API
  • Add command line options support to limit the platform and API if desired.

e.g.:

$ elginfo [-h] [-c] [-a <api>] [-p <platform>]
	 -h: This message
	 -a <api>: Prints renderer for an API if supported.
	    ("glcore", "gles", "vg")
	 -p <platform>: Prints information for a platform if supported.
	    ("android", "gbm", "wayland", "x11", "surfaceless", "device", "none")
Edited May 10, 2022 by Erik Faye-Lund
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: eglinfo