Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3.2k
    • Issues 3.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1k
    • Merge requests 1k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Merge requests
  • !3197

gbm: add gbm_{bo,surface}_create_with_modifiers2

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Simon Ser requested to merge emersion/mesa:modifiers2 into main Dec 22, 2019
  • Overview 105
  • Commits 3
  • Pipelines 25
  • Changes 6

gbm_{bo,surface}_create_with_modifiers is missing the usage flags. Add a new function which lets library users specify it. Daniel Stone said:

We decided to remove [usage flags] since we decided that modifiers were a good enough proxy for usage; no need to pass SCANOUT or TEXTURE anymore, because we already get the scanout modifiers from KMS and the texture modifiers from EGL.

In hindsight, I think this was a mistake since it only handles buffer layout, and not buffer placement or cache configuration.

Update DRIimageExtension with a new createImageWithModifiers2 function, which is like createImageWithModifiers but with the usage flags added.

Signed-off-by: Simon Ser contact@emersion.fr


  • Original thread: https://lists.freedesktop.org/archives/mesa-dev/2019-June/220648.html
  • Compositor using gbm_bo_create_with_modifiers2: https://github.com/emersion/glider/compare/modifiers2

cc @daniels

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: modifiers2