Skip to content
GitLab
Projects Groups 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
    • Contributors
    • Graph
    • Compare
  • Issues 3,075
    • Issues 3,075
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1,006
    • Merge requests 1,006
  • 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

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • MesaMesa
  • mesamesa
  • Merge requests
  • !17830

gallium: Adding support for yuyv to yuv conversion

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Suresh Guttula requested to merge SureshG/mesa:main into main Aug 01, 2022
  • Overview 16
  • Commits 2
  • Pipelines 4
  • Changes 13

This patch will use under-line logic of gfx shaders to do yuyv to yuv conversion. Which is helping some of the use-cases like recodring the video from camera/multi-participant video call.

For example: Multi-participant video call: MJPEG HW decoded output is YUYV(camera captured) and it is fed to next module(like h264 encoder) in the form of NV12 to compress the video to pass on to other particpants in the call. Here we are doing conversion from 422 to 420, currently it is handled by SW conversion.

So application uses vaGetImage() to copy GPU buffer data to CPU buffer and we see lot of execution time for this transfer.

Solution to this is use HW conversion/shader logic to move this calculation to GPU. This Patch handles the same and using shader logic to do conversion.

Signed-off-by: Suresh Guttula suresh.guttula@amd.corp-partner.google.com

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