28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|||
|
|
From: Geminux Contributors <dev@geminux.local>
|
||
|
|
Date: Sun, 22 Nov 2026 12:15:00 +0200
|
||
|
|
Subject: [PATCH] modesetting: skip modifiers when allocating CPU-mapped dumb BOs
|
||
|
|
|
||
|
|
When do_map is true (AccelMethod "none", GBM_BO_USE_WRITE | GBM_BO_USE_SCANOUT),
|
||
|
|
skip gbm_bo_create_with_modifiers{,2} so gbm_bo_create() allocates a linear
|
||
|
|
contiguous KMS dumb buffer directly from the display DRM driver without
|
||
|
|
non-IOMMU PRIME/modifier incompatibilities.
|
||
|
|
---
|
||
|
|
hw/xfree86/drivers/video/modesetting/drmmode_bo.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/hw/xfree86/drivers/video/modesetting/drmmode_bo.c b/hw/xfree86/drivers/video/modesetting/drmmode_bo.c
|
||
|
|
index 1111111..2222222 100644
|
||
|
|
--- a/hw/xfree86/drivers/video/modesetting/drmmode_bo.c
|
||
|
|
+++ b/hw/xfree86/drivers/video/modesetting/drmmode_bo.c
|
||
|
|
@@ -143,7 +143,7 @@ gbm_bo_create_and_map(struct gbm_device *gbm,
|
||
|
|
}
|
||
|
|
|
||
|
|
#ifdef GBM_BO_WITH_MODIFIERS
|
||
|
|
- if (count && modifiers) {
|
||
|
|
+ if (!do_map && count && modifiers) {
|
||
|
|
data->used_modifiers = TRUE;
|
||
|
|
#ifdef GBM_BO_WITH_MODIFIERS2
|
||
|
|
TRY_CREATE(gbm_bo_create_with_modifiers2, data, do_map,
|
||
|
|
--
|
||
|
|
2.55.0
|