Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2,757
    • Issues 2,757
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 909
    • Merge requests 909
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mesa
  • mesamesa
  • Merge requests
  • !7352

panfrost: Rework format handling

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Alyssa Rosenzweig requested to merge alyssa/mesa:z28 into master Oct 28, 2020
  • Overview 27
  • Commits 22
  • Pipelines 18
  • Changes 16

Bifrost v7 handles formats very differently from Midgard (and Bifrost v6), so we need to split out the format table to handle all the weird edge cases. This series cleans up our format handling infrastructure in preparation for the final commit in the series, which rewrites the tables themselves to bake the swizzles into the format.

The old code maps from a PIPE format to an indexed Mali format, and builds a 22-bit pixel format descriptor from the indexed format with swizzle and sRGB flags. With v7 abandoning swizzles for a fixed enum, let's instead map from PIPE formats to 22-bit pixel formats, treating the (swizzle, index, srgb) triple opaquely.

@bbrezillon to review. Cc @chewitt - this should fix Kodi colour issues. Also cc @icecream95 @raster as potentially interested parties.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: z28