Closed Bug 1639855 Opened 4 years ago Closed 4 years ago

[Wayland] Implement dmabuf global ref count

Categories

(Core :: Widget: Gtk, enhancement, P3)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1619882

People

(Reporter: stransky, Assigned: stransky)

References

Details

Attachments

(1 obsolete file)

When vaapi generated dmabuf surfaces are shared across processes we need to know if it's safe to recycle them so we need to hold global reference count for them.

This patch implements:

  • Global surface UID for better tracking/debugging. The UID is passes acros all processes so we can track
    surface usage.
  • WaylandAllocateShmMemory() function which uses shm_open() instead of files at tmp for Shm memory creation.
  • DMABufRefcount() class based on POSIX semaphores created on top of shm memory.
Attachment #9150743 - Attachment is obsolete: true

Let's fix that as a part of Bug 1619882

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: