Bring up SSD2092 display/touch, USB NCM, HiDPI XLibre/DWM, and USB charging
This commit is contained in:
1 parent
034c1f61b1
commit
9db15e30ce
150 files changed
+2356
-446
No files matched your search
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in new issue
Block a user