No description
Find a file
Andrew Wolfers 3dd534cca2 Add padding for i915 cursor buffers
This change adds behavior to pad the requested buffer size when the
BO_USE_CURSOR flag is set. This change is required due to restrictions
on cursor planes with the i915 driver, where a buffer must be of a
particular size in order to be committed to a cursor plane. The exact
requirements can be queried from the DRM_CAP_CURSOR_{WIDTH|HEIGHT}
properties, which if provided, will specify a known acceptable cursor
buffer size. After this change, if the BO_USE_CURSOR flag is set and the
requested size is less than indicated capability, the resulting buffer
will be padded according to the difference.

Bug: b/378461707 , b/388014686
Change-Id: I451421cc784d1e3fdc83eb4e9762d6f0f4caea7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/6282179
Tested-by: Andrew Wolfers <aswolfers@chromium.org>
Reviewed-by: Lina Versace <linyaa@google.com>
Commit-Queue: Andrew Wolfers <aswolfers@chromium.org>
2025-03-12 12:21:51 -07:00
cros_gralloc Add padding for i915 cursor buffers 2025-03-12 12:21:51 -07:00
external xe: add initial Xe kmd support for gen12 xelp 2025-02-10 11:07:50 -08:00
.clang-format minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
amdgpu.c dri: pass use_flags to dri_bo_create_with_modifiers 2024-09-04 02:19:39 +00:00
backend_mock.c minigbm: format fix 2024-05-01 08:09:45 +00:00
common.mk minigbm: Update common.mk to unbreak gcc and bfd builds 2024-09-03 12:44:03 +00:00
DIR_METADATA DIR_METADATA: Add V2 Test Plans. 2022-11-30 01:25:57 +00:00
dri.c dri: pass use_flags to dri_bo_create_with_modifiers 2024-09-04 02:19:39 +00:00
dri.h dri: pass use_flags to dri_bo_create_with_modifiers 2024-09-04 02:19:39 +00:00
drv.c xe: add initial Xe kmd support for gen12 xelp 2025-02-10 11:07:50 -08:00
drv.h i915: Remove media compression support 2024-09-25 15:34:16 +00: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 drv: remove unused #include <linux/dma-buf.h> 2025-02-11 11:00:38 -08:00
drv_helpers.h Revert "gralloc: Error when locking buffer alloc'd without CPU_ usage" 2024-10-08 20:42:45 +00:00
drv_priv.h minigbm: Add an API to return cache attributes 2024-02-01 17:40:19 +00: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 minigbm: #define MINIGBM_HAS_GBM_BO_GET_MAP_INFO 2024-06-18 03:02:33 +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 minigbm: format fix 2024-05-01 08:09:45 +00:00
i915.c Add padding for i915 cursor buffers 2025-03-12 12:21:51 -07:00
intel_defines.h xe: add lnl/ptl pci ids 2025-02-11 14:24:15 -08: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 minigbm: Fix 10bit protected allocations on MTK 2024-10-28 07:50:21 +00: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
msm.c msm: pad extra for YV12 to align with freedreno fdl_layout 2024-04-29 23:20:14 +00:00
OWNERS Remove marcheu@chromium.org from OWNERS 2024-11-21 20:10:59 +00:00
PRESUBMIT.cfg minigbm: fix typo in PRESUBMIT.cfg 2017-05-20 03:55:21 -07:00
presubmit.sh minigbm: i915: use local i915 drm header 2020-11-25 22:35:14 +00:00
rockchip.c minigbm: clean up bo.handles 2023-04-09 18:57:40 +00:00
testrunner.cc minigbm: add unit test for minigbm public apis 2024-01-30 20:59:57 +00:00
util.h xe: add initial Xe kmd support for gen12 xelp 2025-02-10 11:07:50 -08: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 Initialize emulated_metadata fields to avoid uninitialized warnings 2024-08-27 00:06:40 +00:00
xe.c xe: add lnl/ptl pci ids 2025-02-11 14:24:15 -08:00