Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-plugins-base gst-plugins-base
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 642
    • Issues 642
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 81
    • Merge requests 81
  • 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
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gst-plugins-basegst-plugins-base
  • Merge requests
  • !1109

eglimage: Do not set modifier obviously when importing EGL image for DMA.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open He Junyan requested to merge He_Junyan/gst-plugins-base:dma_mode_upload into master Apr 14, 2021
  • Overview 3
  • Commits 1
  • Pipelines 3
  • Changes 1

The gst_egl_image_from_dmabuf_direct_target always has the assumption that the input surface/buffer is a linear one. It always set the modifier to the DRM_FORMAT_MOD_LINEAR. But in fact, the input surface/buffer may be a non-linear one. For example: gst-launch-1.0 -vf filesrc location=xxx.bits ! h264parse ! vah264dec
! vapostproc ! video/x-raw(memory:DMABuf) ! glimagesink generates garbage images in the EGL mode because of the tiling issue. The output of vapostproc is a tiling one on Intel's platform, whose modifier is I915_FORMAT_MOD_Y_TILED, but here we still force to set the modifier to the DRM_FORMAT_MOD_LINEAR. It is not correct.

On current platforms, the 3D driver has the ability to detect and set the correct modifier if we do not obviously specify the modifier in the attributes. The furture platforms may fail to do the detect and we need to specify it in the caps. We should enable the modifier setting when that is ready.

Edited Apr 14, 2021 by He Junyan
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: dma_mode_upload