[Mesa-dev] [PATCH v2 0/4] gallium/winsys/kms: Fix issues with prime import
Tomasz Figa
tfiga at chromium.org
Tue Aug 2 10:46:24 UTC 2016
Current prime import code in kms-dri Gallium winsys backend has several
issues:
- It leaks imported buffers, because of duplicate reference count
increment at import time.
- It does not check whether an already imported (or local) buffer is not
being imported, which is problematic because prime import always
returns the same GEM handle for the same buffer and we end up creating
duplicate structs referencing the same handle.
This series is an attempt to fix these problems. It originated from
[PATCH] gallium/sw/kms: Fix multiple imports from PRIME FDs
(https://patchwork.freedesktop.org/patch/98856/)
and so they patches inside are considered to be v2.
Tomasz Figa (4):
gallium/winsys/kms: Fix double refcount when importing from prime FD (v2)
gallium/winsys/kms: Fully initialize kms_sw_dt at prime import time (v2)
gallium/winsys/kms: Move display target handle lookup to separate
function (v2)
gallium/winsys/kms: Look up the GEM handle after importing a prime FD (v2)
src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 56 ++++++++++++++++-------
1 file changed, 39 insertions(+), 17 deletions(-)
--
2.8.0.rc3.226.g39d4020
More information about the mesa-dev
mailing list