No description
Find a file
Roman Stratiienko 4f7758ffa1 minigbm: Use dmabuf inode as unique buffer id instead of handle
Handle has some limits and can't be used as unique buffer ID on systems
where display controller can scanout from CMA but GPU can work with both
CMA and VRAM.

Such systems have DRM/KMS and DRM/GPU drivers separated.
GBM frontend is always expecting handle for DRM/KMS driver.
In such system any attempt of importing the buffer with more
than 1 contiguous chunk into DRM/KMS driver will fail.

Using dma-buf inode as unique buffer ID is a common practice for
a last several years starting from [this kernel patch][1].

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed63bb1d1f8469586006a9ca63c42344401aa2ab
Change-Id: Ic3a69010d5da2f866a2252fc7e9eb29d67f8e1ed
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2026-07-16 00:53:22 -04:00
cros_gralloc Add missing mediatek gralloc4 init .rc file 2026-07-15 22:46:56 -04:00
external add dma-heap.h to external 2025-05-09 14:05:18 -07:00
gbm_mesa_driver reverting 2026-07-15 22:37:40 -04:00
rust minigbm: add bindgen-generated Rust bindings 2024-03-18 18:48:46 +00:00
.clang-format minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
amdgpu.c Revert^2 "Merge remote-tracking branch 'aosp/upstream-main'" 2024-10-16 19:19:47 +00:00
Android.bp gbm_mesa: Add android makefiles and init/vintf fragments 2026-07-15 22:37:40 -04:00
backend_mock.c Revert^2 "Merge upstream-main into main" 2024-07-03 18:21:13 +00:00
CleanSpec.mk minigbm: add a CleanSpec 2025-05-03 02:34:02 +00:00
common.mk Revert^2 "Merge remote-tracking branch 'aosp/upstream-main'" 2024-10-16 19:19:47 +00:00
DIR_METADATA DIR_METADATA: Add V2 Test Plans. 2022-11-30 01:25:57 +00:00
dri.c Revert^2 "Merge remote-tracking branch 'aosp/upstream-main'" 2024-10-16 19:19:47 +00:00
dri.h Revert^2 "Merge remote-tracking branch 'aosp/upstream-main'" 2024-10-16 19:19:47 +00:00
drv.c minigbm: Use dmabuf inode as unique buffer id instead of handle 2026-07-16 00:53:22 -04:00
drv.h minigbm: Use dmabuf inode as unique buffer id instead of handle 2026-07-16 00:53:22 -04:00
drv_array_helpers.c minigbm: refactor driver helpers 2021-10-01 18:35:11 +00:00
drv_array_helpers.h minigbm: refactor driver helpers 2021-10-01 18:35:11 +00:00
drv_helpers.c minigbm: Use dmabuf inode as unique buffer id instead of handle 2026-07-16 00:53:22 -04:00
drv_helpers.h minigbm: Use dmabuf inode as unique buffer id instead of handle 2026-07-16 00:53:22 -04:00
drv_priv.h minigbm: Use dmabuf inode as unique buffer id instead of handle 2026-07-16 00:53:22 -04:00
dumb_driver.c minigbm: Add more dumb drivers 2022-12-07 14:36:24 +00:00
gbm.c minigbm: add gbm_{bo,surface}_create_with_modifiers2 2024-03-12 11:19:37 +00:00
gbm.h Revert^2 "Merge upstream-main into main" 2024-07-03 18:21:13 +00:00
gbm_helpers.c minigbm: passthrough SENSOR_DIRECT_DATA via gbm frontend 2022-07-26 23:41:35 +00:00
gbm_helpers.h minigbm: standardize naming of buffer creation flags 2017-10-02 17:27:17 -07:00
gbm_priv.h minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
gbm_unittest.cc Revert^2 "Merge upstream-main into main" 2024-07-03 18:21:13 +00:00
i915.c UPSTREAM: presubmit: switch to cros format 2025-06-24 17:37:57 -07:00
intel_defines.h UPSTREAM: add pciids to support wildcatlake 2025-09-11 16:46:40 +00:00
LICENSE minigbm: Add a LICENSE file 2017-04-21 21:57:32 -07:00
Makefile xe: add initial Xe kmd support for gen12 xelp 2025-02-10 11:07:50 -08:00
mediatek.c mediatek: Open restricted_mtk_cma in O_RDONLY 2025-07-22 18:40:05 -07:00
METADATA Upgrade minigbm to 3dd534cca2 2025-03-20 08:18:23 -07:00
minigbm_helpers.c minigbm: clean up legacy gbm_get_default_device_fd usage 2023-03-09 05:06:53 +00:00
minigbm_helpers.h minigbm: clean up legacy gbm_get_default_device_fd usage 2023-03-09 05:06:53 +00:00
MODULE_LICENSE_BSD Add OWNERS and METADATA. 2018-06-25 14:40:05 -07:00
msm.c Revert^2 "Merge upstream-main into main" 2024-07-03 18:21:13 +00:00
OWNERS Merge "Revert "Add janitors to the OWNERS file"" into main 2025-02-18 13:55:55 -08:00
OWNERS.android minigbm: expand owners for desktop development 2025-03-26 05:59:00 +00:00
PRESUBMIT.cfg minigbm: fix typo in PRESUBMIT.cfg 2017-05-20 03:55:21 -07:00
presubmit.sh UPSTREAM: presubmit: switch to cros format 2025-06-24 17:37:57 -07:00
rockchip.c minigbm: clean up bo.handles 2023-04-09 18:57:40 +00:00
TEST_MAPPING ANDROID: Add CfVkmsCursorTest to desktop-presubmit TEST_MAPPING 2025-07-31 14:44:18 +00:00
testrunner.cc minigbm: add unit test for minigbm public apis 2024-01-30 20:59:57 +00:00
util.h UPSTREAM: presubmit: switch to cros format 2025-06-24 17:37:57 -07:00
vc4.c minigbm: clean up bo.handles 2023-04-09 18:57:40 +00:00
virtgpu.c drv/virtgpu: add log level for logging 2022-07-14 08:48:27 +00:00
virtgpu.h Add format filtering for virgl gfxstream 2024-08-01 15:42:33 +00:00
virtgpu_cross_domain.c virtgpu_cross_domain: Hold a lock for all of bo_create 2025-02-25 04:26:53 -08:00
virtgpu_virgl.c minigbm: Use dmabuf inode as unique buffer id instead of handle 2026-07-16 00:53:22 -04:00
xe.c UPSTREAM: presubmit: switch to cros format 2025-06-24 17:37:57 -07:00